fix: add format attribute to relevant functions (-Wsuggest-attribute=format)
[lttng-ust.git] / include / lttng / tracelog.h
index 4dfb9d3615c81fd9dc70bea086311b5e5e41d261..e80f23813b250cb58244128b15d7a8293674ce17 100644 (file)
@@ -14,8 +14,10 @@ extern "C" {
 #endif
 
 #define TP_TRACELOG_CB_TEMPLATE(level)                                 \
+       __attribute__ ((format(printf, 4, 5)))                          \
        extern void _lttng_ust_tracelog_##level(const char *file,       \
                int line, const char *func, const char *fmt, ...);      \
+       __attribute__ ((format(printf, 4, 0)))                          \
        extern void _lttng_ust_vtracelog_##level(const char *file,      \
                int line, const char *func, const char *fmt, va_list ap);
 
This page took 0.023482 seconds and 4 git commands to generate.