diff options
author | Richard Braun <rbraun@sceen.net> | 2019-06-08 17:41:34 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2019-06-08 17:41:34 +0200 |
commit | 53957b1cc12cac4841d1f79d1014d858eeca7ae2 (patch) | |
tree | 880cafd3aa93f08123546d806771e590984e63d4 | |
parent | 6873ec9b5baf68e94845e483af70903dae4cff6a (diff) |
kern/log: add printf-specific warnings to log_printf_fn_t
-rw-r--r-- | kern/log.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -44,7 +44,8 @@ enum { * One call to a log print function produces a single log line, with a * newline character. */ -typedef int (*log_print_fn_t)(const char *format, ...); +typedef int (*log_print_fn_t)(const char *format, ...) + __attribute__((format(printf, 1, 2))); /* * Generate a message and send it to the log thread. |