extern "C" {
#endif
-#define TP_TRACELOG_CB_TEMPLATE(level) \
- extern void _lttng_ust_tracelog_##level(const char *file, \
- int line, const char *func, const char *fmt, ...)
+#define TP_TRACELOG_CB_TEMPLATE(level) \
+ extern void _lttng_ust_tracelog_##level(const char *file, \
+ int line, const char *func, const char *fmt, ...); \
+ extern void _lttng_ust_vtracelog_##level(const char *file, \
+ int line, const char *func, const char *fmt, va_list ap);
TP_TRACELOG_CB_TEMPLATE(TRACE_EMERG);
TP_TRACELOG_CB_TEMPLATE(TRACE_ALERT);
LTTNG_STAP_PROBEV(tracepoint_lttng_ust_tracelog, level, ## __VA_ARGS__); \
if (caa_unlikely(__tracepoint_lttng_ust_tracelog___##level.state)) \
_lttng_ust_tracelog_##level(__FILE__, __LINE__, __func__, \
- fmt, ## __VA_ARGS__); \
+ fmt, ## __VA_ARGS__); \
} while (0)
#define vtracelog(level, fmt, ap) \
do { \
if (caa_unlikely(__tracepoint_lttng_ust_tracelog___##level.state)) \
- _lttng_ust_tracelog_##level(__FILE__, __LINE__, __func__, \
- fmt, ap); \
+ _lttng_ust_vtracelog_##level(__FILE__, __LINE__, __func__, \
+ fmt, ap); \
} while (0)
#ifdef __cplusplus