X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Ftracelog.h;h=336911f4d5b243befd7c3a611a312fdce0138991;hb=c3ba99c2fb06e6ac4e5921f580c26d61afc53917;hp=e80f23813b250cb58244128b15d7a8293674ce17;hpb=b1d36dcecece5826b07504fae171e76be800b4ef;p=lttng-ust.git diff --git a/include/lttng/tracelog.h b/include/lttng/tracelog.h index e80f2381..336911f4 100644 --- a/include/lttng/tracelog.h +++ b/include/lttng/tracelog.h @@ -14,12 +14,14 @@ extern "C" { #endif #define TP_TRACELOG_CB_TEMPLATE(level) \ - __attribute__ ((format(printf, 4, 5))) \ extern void _lttng_ust_tracelog_##level(const char *file, \ - int line, const char *func, const char *fmt, ...); \ - __attribute__ ((format(printf, 4, 0))) \ + 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);