#ifndef _LTTNG_UST_TRACELOG_H
#define _LTTNG_UST_TRACELOG_H
-#include <lttng/lttng-ust-tracelog.h>
+#include <lttng/tp/lttng-ust-tracelog.h>
#ifdef __cplusplus
extern "C" {
#define TP_TRACELOG_CB_TEMPLATE(level) \
extern void _lttng_ust_tracelog_##level(const char *file, \
- int line, const char *func, const char *fmt, ...); \
+ int line, const char *func, const char *fmt, ...) \
+ __attribute__ ((format(printf, 4, 5))); \
+ \
extern void _lttng_ust_vtracelog_##level(const char *file, \
- int line, const char *func, const char *fmt, va_list ap);
+ int line, const char *func, const char *fmt, \
+ va_list ap) \
+ __attribute__ ((format(printf, 4, 0)));
TP_TRACELOG_CB_TEMPLATE(TRACE_EMERG);
TP_TRACELOG_CB_TEMPLATE(TRACE_ALERT);