From 8de8b3a8e328be181a6ddd9b82cf469eeb0e0d8b Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 9 Mar 2006 19:37:13 +0000 Subject: Fix logging functions --- hcid/logging.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'hcid/logging.c') diff --git a/hcid/logging.c b/hcid/logging.c index 9d0ff214..3b31366a 100644 --- a/hcid/logging.c +++ b/hcid/logging.c @@ -32,17 +32,29 @@ #include "hcid.h" -void info(const char *format, va_list ap) +void info(const char *format, ...) { + va_list ap; + + va_start(ap, format); vsyslog(LOG_INFO, format, ap); + va_end(ap); } -void error(const char *format, va_list ap) +void error(const char *format, ...) { + va_list ap; + + va_start(ap, format); vsyslog(LOG_ERR, format, ap); + va_end(ap); } -void debug(const char *format, va_list ap) +void debug(const char *format, ...) { + va_list ap; + + va_start(ap, format); vsyslog(LOG_DEBUG, format, ap); + va_end(ap); } -- cgit