X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=doc%2Fexamples%2Fdemo-tracef%2Fdemo-vtracef.c;h=13564f41b0c0e17964ee6b73a716ff4833082c1b;hb=06294ff90351f02d01c65d186e3d993f624fef8d;hp=4f219f236c70585a5403c8b7fe2a62c9e7bf3f32;hpb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;p=lttng-ust.git diff --git a/doc/examples/demo-tracef/demo-vtracef.c b/doc/examples/demo-tracef/demo-vtracef.c index 4f219f23..13564f41 100644 --- a/doc/examples/demo-tracef/demo-vtracef.c +++ b/doc/examples/demo-tracef/demo-vtracef.c @@ -11,12 +11,16 @@ #include +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); }