X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmountd.git;a=blobdiff_plain;f=log.c;h=8ef4d5a4b20956038ad7e1eeb7b1d3e9a3b90600;hp=263e1d5158e7f2762f47c73d77c778b600892a87;hb=f07729fc166ce673ecafcfe904c23c38059af171;hpb=be3b285c88648c24f7e4b36bebac56a95fa80f7e diff --git a/log.c b/log.c index 263e1d5..8ef4d5a 100644 --- a/log.c +++ b/log.c @@ -2,6 +2,8 @@ #include #include +#include "include/log.h" + extern int daemonize; void log_start(void) @@ -24,7 +26,7 @@ void log_printf(char *fmt, ...) va_end(ap); if(daemonize) - syslog(10, p); + syslog(10, "%s", p); else - printf(p); + printf("%s", p); }