From d878062cc7cdbcd345253d6f363855f9ac6f1980 Mon Sep 17 00:00:00 2001 From: henri Date: Thu, 10 Jan 2013 19:19:09 +0000 Subject: [PATCH] Added format attribute to __nsock_log_internal. This allows log format strings to be checked at compile time. --- nsock/src/nsock_log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsock/src/nsock_log.h b/nsock/src/nsock_log.h index ddc7239fe..589206846 100644 --- a/nsock/src/nsock_log.h +++ b/nsock/src/nsock_log.h @@ -95,7 +95,7 @@ void __nsock_log_internal(nsock_pool nsp, nsock_loglevel_t loglevel, const char *file, int line, const char *func, - const char *format, ...); + const char *format, ...) __attribute__((format (printf, 6, 7))); void nsock_stderr_logger(nsock_pool nsp, const struct nsock_log_rec *rec);