From 7ad052583a058efb1816d7d4cb634fbc5be1ccc6 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 17 Mar 2012 18:38:58 +0000 Subject: [PATCH] Fix warnings. Doh. --- log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/log.c b/log.c index 0798ee91..184f9597 100644 --- a/log.c +++ b/log.c @@ -39,6 +39,7 @@ FILE *log_file; /* Debug level. */ int log_level; +void log_event_cb(int, const char *); void log_vwrite(int, const char *, va_list); __dead void log_vfatal(const char *, va_list); @@ -46,7 +47,7 @@ __dead void log_vfatal(const char *, va_list); void log_event_cb(unused int severity, const char *msg) { - log_warnx(msg); + log_warnx("%s", msg); } /* Open logging to tty. */