From 7a4256f97fb251cecce2f7e3b92ceffee0957151 Mon Sep 17 00:00:00 2001 From: Alex Dowad Date: Fri, 1 May 2015 16:03:52 +0200 Subject: all: avoid garbling status messages which are sent to syslog Fixed bug introduced in eb5b69d. --- src/reporting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reporting.c b/src/reporting.c index 329d850..4be6e1b 100644 --- a/src/reporting.c +++ b/src/reporting.c @@ -35,7 +35,7 @@ void report_message(int level, const char *format, ...) va_start(args, format); if(syslog_flag || level == REPORT_ALERT) { - syslog(LOG_USER | log_levels[level], format, args); + vsyslog(LOG_USER | log_levels[level], format, args); /* va_list can only be used once */ va_end(args); va_start(args, format); -- cgit v1.2.3