2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2020 Maxime Roussin-Belanger <maxime.roussinbelanger@gmail.com>
12 #include <lttng/tracef.h>
15 void print_debug(const char* msg
, ...)
16 __attribute__((format(printf
, 1, 2)));
18 void print_debug(const char* msg
, ...)
27 int main(int argc
, char **argv
)
31 const char *str
= "mystring test";
35 delay
= atoi(argv
[1]);
37 fprintf(stderr
, "Demo program starting.\n");
41 fprintf(stderr
, "Tracing... ");
43 for (i
= 0; i
< 5; i
++) {
44 print_debug("This is a \"%s\" formatted %d event %lx", str
, i
, l
);
47 fprintf(stderr
, " done.\n");
This page took 0.042863 seconds and 4 git commands to generate.