From: Martin Mares Date: Sat, 10 Apr 2004 14:45:19 +0000 (+0000) Subject: Including in lib/lib.h enables us to finally export vlog_msg() X-Git-Tag: holmes-import~1082 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=41a27695fb84f3f40f4567fef6f1c1e3f15380a6;p=libucw.git Including in lib/lib.h enables us to finally export vlog_msg() which I was missing for several times. --- diff --git a/lib/log.c b/lib/log.c index 2f6e9fd5..381f7257 100644 --- a/lib/log.c +++ b/lib/log.c @@ -58,8 +58,8 @@ log_switch(struct tm *tm) log_switching--; } -static void -vlog(unsigned int cat, const char *msg, va_list args) +void +vlog_msg(unsigned int cat, const char *msg, va_list args) { time_t tim = time(NULL); struct tm *tm = localtime(&tim); @@ -112,7 +112,7 @@ log_msg(unsigned int cat, const char *msg, ...) va_list args; va_start(args, msg); - vlog(cat, msg, args); + vlog_msg(cat, msg, args); va_end(args); } @@ -122,7 +122,7 @@ die(byte *msg, ...) va_list args; va_start(args, msg); - vlog(L_FATAL, msg, args); + vlog_msg(L_FATAL, msg, args); va_end(args); #ifdef DEBUG_DIE_BY_ABORT abort();