tracepoint: namespace systemtap UST macros with LTTNG_UST_ prefix
[lttng-ust.git] / include / lttng / tracef.h
index df4b464570a9963331f7446ed31852be32391794..6890027d976c407b5cd86e9180be2665ae67c25c 100644 (file)
@@ -14,14 +14,16 @@ extern "C" {
 #endif
 
 extern
-void _lttng_ust_tracef(const char *fmt, ...);
+void _lttng_ust_tracef(const char *fmt, ...)
+       __attribute__((format(printf, 1, 2)));
 
 extern
-void _lttng_ust_vtracef(const char *fmt, va_list ap);
+void _lttng_ust_vtracef(const char *fmt, va_list ap)
+       __attribute__((format(printf, 1, 0)));
 
 #define tracef(fmt, ...)                                               \
        do {                                                            \
-               LTTNG_STAP_PROBEV(tracepoint_lttng_ust_tracef, event, ## __VA_ARGS__); \
+               LTTNG_UST_STAP_PROBEV(tracepoint_lttng_ust_tracef, event, ## __VA_ARGS__); \
                if (caa_unlikely(__tracepoint_lttng_ust_tracef___event.state)) \
                        _lttng_ust_tracef(fmt, ## __VA_ARGS__);         \
        } while (0)
This page took 0.023859 seconds and 4 git commands to generate.