X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2Flog.h;h=6e799ad36f933252e5c8f2b6428557595624087f;hb=167ce32a7cb99962e6ae8f8c6d36b0999c16888c;hp=c495524cb8abb6e3787b1df633cc66aeecc94f41;hpb=8b4e882a1630d63bbc9840fa3f968e36b6ac3702;p=openocd.git diff --git a/src/helper/log.h b/src/helper/log.h index c495524cb8..6e799ad36f 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -20,6 +20,7 @@ #ifndef ERROR_H #define ERROR_H +#include "replacements.h" #include "command.h" #include @@ -39,7 +40,8 @@ enum log_levels }; extern void log_printf(enum log_levels level, const char *file, int line, - const char *function, const char *format, ...); + const char *function, const char *format, ...) + __attribute__ ((format (printf, 5, 6))); extern int log_register_commands(struct command_context_s *cmd_ctx); extern int log_init(struct command_context_s *cmd_ctx);