fix: add format attribute to relevant functions (-Wsuggest-attribute=format)
[lttng-ust.git] / doc / examples / demo-tracelog / demo-vtracelog.c
index 4adaa0193262e2b944ae77a814ce9f92c780f4b5..eed8677c4d4beb67da7dac7d2fa215cbd118a47d 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <lttng/tracelog.h>
 
+__attribute__((format(printf, 1, 2)))
 void print_err(const char* msg, ...)
 {
        va_list ap;
This page took 0.023048 seconds and 4 git commands to generate.