X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fexamples%2Fdemo-tracef%2Fdemo-vtracef.c;h=8fe8bb36d27a4bd55da56ac4d0b1d5fa1155f24d;hb=4199ddc7eb37386241633a0dd65a5305ec97cb15;hp=dc094ce470be987f80d05abd7b8cfdf51e984757;hpb=f27f1026353ae61083b7a2221f912b0299095a04;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;