Added format attribute to __nsock_log_internal.

This allows log format strings to be checked at compile time.
This commit is contained in:
henri 2013-01-10 19:19:09 +00:00
parent b9fe5bce4f
commit d878062cc7

View file

@ -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);