configure: enable -Wsuggest-attribute=format
[lttng-tools.git] / tests / utils / testapp / gen-ns-events / gen-ns-events.cpp
index 7c2b6478c4520f526a9dbca17c7d4d12d1bb650f..78b962d19bb71a0e214fcd6a0f4ec41511eb73f1 100644 (file)
@@ -20,6 +20,7 @@
 #include <unistd.h>
 
 #include <common/compat/tid.h>
+#include <common/macros.h>
 
 #include "signal-helper.h"
 #include "utils.h"
@@ -74,7 +75,8 @@ static struct poptOption opts[] = {
        { NULL, 0, 0, NULL, 0 }
 };
 
-static void debug_printf(const char *format, ...)
+static ATTR_FORMAT_PRINTF(1, 2)
+void debug_printf(const char *format, ...)
 {
        va_list args;
        va_start(args, format);
This page took 0.022914 seconds and 4 git commands to generate.