fix: add format attribute to relevant functions (-Wsuggest-attribute=format)
[lttng-ust.git] / include / lttng / tracef.h
index df4b464570a9963331f7446ed31852be32391794..2b57ca8c38406ae586bdd4ef8c530add556375f5 100644 (file)
@@ -14,9 +14,11 @@ extern "C" {
 #endif
 
 extern
+__attribute__((format(printf, 1, 2)))
 void _lttng_ust_tracef(const char *fmt, ...);
 
 extern
+__attribute__((format(printf, 1, 0)))
 void _lttng_ust_vtracef(const char *fmt, va_list ap);
 
 #define tracef(fmt, ...)                                               \
This page took 0.023154 seconds and 4 git commands to generate.