Prepare for '-Wmissing-field-initializers'
[lttng-tools.git] / tests / utils / testapp / gen-ns-events / gen-ns-events.cpp
index 7c2b6478c4520f526a9dbca17c7d4d12d1bb650f..6afd855da1d0c986e2bbdc6e7e07b721e653b07f 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"
@@ -71,10 +72,11 @@ static struct poptOption opts[] = {
        { "after", 'a', POPT_ARG_STRING, &after_unshare_wait_file_path, 0, "Wait for file after unshare", NULL },
        { "signal", 's', POPT_ARG_STRING, &after_unshare_signal_file_path, 0, "Create signal file after unshare", NULL },
        POPT_AUTOHELP
-       { NULL, 0, 0, NULL, 0 }
+       { NULL, 0, 0, NULL, 0, NULL, NULL }
 };
 
-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.022924 seconds and 4 git commands to generate.