]> git.sur5r.net Git - openocd/blobdiff - src/helper/log.h
- only some cosmetic changes, convert \r\n to unix
[openocd] / src / helper / log.h
index c495524cb8abb6e3787b1df633cc66aeecc94f41..6e799ad36f933252e5c8f2b6428557595624087f 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef ERROR_H
 #define ERROR_H
 
+#include "replacements.h"
 #include "command.h"
 
 #include <stdarg.h>
@@ -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);