cleanup: function attribute 'format'
[lttng-ust.git] / liblttng-ust / tracelog.c
index 1f18853ff1b49c78c4898b17f4ef30362994a005..307e0fce2fe434a3e55e00b6b6d3d52eb5ed588d 100644 (file)
 #include "lttng-ust-tracelog-provider.h"
 
 #define TRACELOG_CB(level) \
-       static inline __attribute__((always_inline, format(printf, 4, 0))) \
+       static inline \
+       void __lttng_ust_vtracelog_##level(const char *file, \
+                       int line, const char *func, \
+                       const char *fmt, va_list ap) \
+               __attribute__((always_inline, format(printf, 4, 0))); \
+       \
+       static inline \
        void __lttng_ust_vtracelog_##level(const char *file, \
                        int line, const char *func, \
                        const char *fmt, va_list ap) \
                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) \
+               __attribute__ ((format(printf, 4, 0))); \
+       \
        void _lttng_ust_vtracelog_##level(const char *file, \
                        int line, const char *func, \
                        const char *fmt, va_list ap) \
                __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, ...) \
+               __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.0236 seconds and 4 git commands to generate.