mount: improve handling mounts table size
[oweals/mountd.git] / log.c
diff --git a/log.c b/log.c
index 263e1d5158e7f2762f47c73d77c778b600892a87..8ef4d5a4b20956038ad7e1eeb7b1d3e9a3b90600 100644 (file)
--- a/log.c
+++ b/log.c
@@ -2,6 +2,8 @@
 #include <syslog.h>
 #include <stdarg.h>
 
+#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);
 }