X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=doc%2Fexamples%2Fdemo-tracef%2Fdemo-vtracef.c;h=13564f41b0c0e17964ee6b73a716ff4833082c1b;hb=06294ff90351f02d01c65d186e3d993f624fef8d;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..13564f41 100644 --- a/doc/examples/demo-tracef/demo-vtracef.c +++ b/doc/examples/demo-tracef/demo-vtracef.c @@ -11,13 +11,16 @@ #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; va_start(ap, msg); - vtracef(msg, ap); + lttng_ust_vtracef(msg, ap); va_end(ap); }