Add format checks for printf-style functions

Added format checks to functions that expect printf style arguments and
fixed any broken calls to these functions.
This commit is contained in:
Markus Mäkelä
2017-09-11 10:38:46 +03:00
parent b5202a99f4
commit 730072e2ef
5 changed files with 19 additions and 4 deletions

View File

@ -119,7 +119,7 @@ static inline bool mxs_log_priority_is_enabled(int priority)
int mxs_log_message(int priority,
const char* modname,
const char* file, int line, const char* function,
const char* format, ...) __attribute__((format(printf, 6, 7)));
const char* format, ...) mxs_attribute((format(printf, 6, 7)));
/**
* Log an error, warning, notice, info, or debug message.
*