fix: add fallthrough annotations (-Wimplicit-fallthrough)
[lttng-ust.git] / liblttng-ust / tracelog.c
index 3d48b1eddd1306f918b3f0bb4f78c1ba6306caca..1f18853ff1b49c78c4898b17f4ef30362994a005 100644 (file)
@@ -6,14 +6,14 @@
 
 #define _LGPL_SOURCE
 #include <stdio.h>
-#include <helper.h>
+#include <ust-helper.h>
 
 #define TRACEPOINT_CREATE_PROBES
 #define TRACEPOINT_DEFINE
 #include "lttng-ust-tracelog-provider.h"
 
 #define TRACELOG_CB(level) \
-       static inline __attribute__((always_inline)) \
+       static inline __attribute__((always_inline, format(printf, 4, 0))) \
        void __lttng_ust_vtracelog_##level(const char *file, \
                        int line, const char *func, \
                        const char *fmt, va_list ap) \
@@ -32,6 +32,7 @@
                return; \
        } \
        \
+       __attribute__ ((format(printf, 4, 0))) \
        void _lttng_ust_vtracelog_##level(const char *file, \
                        int line, const char *func, \
                        const char *fmt, va_list ap) \
@@ -39,6 +40,7 @@
                __lttng_ust_vtracelog_##level(file, line, func, fmt, ap); \
        } \
        \
+       __attribute__ ((format(printf, 4, 5))) \
        void _lttng_ust_tracelog_##level(const char *file, \
                        int line, const char *func, \
                        const char *fmt, ...) \
This page took 0.023612 seconds and 4 git commands to generate.