X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=doc%2Fexamples%2Fdemo-tracef%2Fdemo-vtracef.c;h=8fe8bb36d27a4bd55da56ac4d0b1d5fa1155f24d;hb=f72cd4d92d052b93bce77fa5761b14fc2a172bdb;hp=dc094ce470be987f80d05abd7b8cfdf51e984757;hpb=b1d36dcecece5826b07504fae171e76be800b4ef;p=lttng-ust.git diff --git a/doc/examples/demo-tracef/demo-vtracef.c b/doc/examples/demo-tracef/demo-vtracef.c index dc094ce4..8fe8bb36 100644 --- a/doc/examples/demo-tracef/demo-vtracef.c +++ b/doc/examples/demo-tracef/demo-vtracef.c @@ -11,7 +11,10 @@ #include -__attribute__((format(printf, 1, 2))) +static +void print_debug(const char* msg, ...) + __attribute__((format(printf, 1, 2))); +static void print_debug(const char* msg, ...) { va_list ap;