X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Flog.c;h=5d2af2b8bf295e2b80f1fc0c7c6dfcdd540c8563;hb=ed9b54bd89b704e6111acbd91b6a7b50e3c30cf5;hp=9392884f494d09db83f46c6721bde9b5e7c184e1;hpb=6014b0c3e4de295fb88dc71f779abe8bf7a5553b;p=umurmur.git diff --git a/src/log.c b/src/log.c index 9392884..5d2af2b 100644 --- a/src/log.c +++ b/src/log.c @@ -66,7 +66,7 @@ void logthis(const char *logstring, ...) if (termprint) fprintf(stderr, "%s\n", buf); else - syslog(LOG_INFO, buf); + syslog(LOG_INFO, "%s", buf); } void Log_warn(const char *logstring, ...) @@ -82,7 +82,7 @@ void Log_warn(const char *logstring, ...) if (termprint) fprintf(stderr, "%s\n", buf); else - syslog(LOG_WARNING, buf); + syslog(LOG_WARNING, "%s", buf); } void Log_info(const char *logstring, ...) @@ -98,7 +98,7 @@ void Log_info(const char *logstring, ...) if (termprint) fprintf(stderr, "%s\n", buf); else - syslog(LOG_INFO, buf); + syslog(LOG_INFO, "%s", buf); } void Log_info_client(client_t *client, const char *logstring, ...) { @@ -118,7 +118,7 @@ void Log_info_client(client_t *client, const char *logstring, ...) if (termprint) fprintf(stderr, "%s\n", buf); else - syslog(LOG_INFO, buf); + syslog(LOG_INFO, "%s", buf); } @@ -136,7 +136,7 @@ void Log_debug(const char *logstring, ...) if (termprint) fprintf(stderr, "%s\n", buf); else - syslog(LOG_DEBUG, buf); + syslog(LOG_DEBUG, "%s", buf); } #endif @@ -152,6 +152,6 @@ void Log_fatal(const char *logstring, ...) if (termprint) fprintf(stderr, "%s\n", buf); else - syslog(LOG_CRIT, buf); + syslog(LOG_CRIT, "%s", buf); exit(1); }