X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fhelper%2Flog.h;h=bc08fe49a0af2f9073f889d96cbf6f4a23436fa4;hb=1e427fd580ad94bb3bf29d4e02ef81361c920f28;hp=d60587f72c4ce3f72cfb38ebd36d2ee7f48786f0;hpb=678fb4f60b685ed79d35272bc515891fa53b527e;p=fw%2Fopenocd diff --git a/src/helper/log.h b/src/helper/log.h index d60587f72..bc08fe49a 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -95,7 +95,8 @@ int log_add_callback(log_callback_fn fn, void *priv); int log_remove_callback(log_callback_fn fn, void *priv); char *alloc_vprintf(const char *fmt, va_list ap); -char *alloc_printf(const char *fmt, ...); +char *alloc_printf(const char *fmt, ...) + __attribute__ ((format (PRINTF_ATTRIBUTE_FORMAT, 1, 2))); extern int debug_level;