From 858fef5c8fc0c1b4c237dc65499756c3664492d8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 31 Oct 2017 23:21:30 +0100 Subject: [*] Mark logadd() as printf-style function, fix errors that it revealed ...there were quite a few format string errors as it turns out :/ --- src/shared/log.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/shared/log.h') diff --git a/src/shared/log.h b/src/shared/log.h index f273cab..74b3511 100644 --- a/src/shared/log.h +++ b/src/shared/log.h @@ -45,7 +45,8 @@ bool log_openLogFile(const char *path); /** * Add a line to the log */ -void logadd(const logmask_t mask, const char *text, ...); +void logadd(const logmask_t mask, const char *text, ...) + __attribute__ ((format (printf, 2, 3))); /** * Return last size bytes of log. -- cgit v1.2.3-55-g7522