X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2Ftrigger-condition-event-matches%2Finstrumented-app.c;h=6148d1c090d3abd298e514accf94292ff35dd4d4;hb=HEAD;hp=dce6e577fef9b208c17b29cddfcf482f42f41320;hpb=595ed92e6d1d46347ac633315c5f711c2fc2015c;p=lttng-tools.git diff --git a/doc/examples/trigger-condition-event-matches/instrumented-app.c b/doc/examples/trigger-condition-event-matches/instrumented-app.c index dce6e577f..6148d1c09 100644 --- a/doc/examples/trigger-condition-event-matches/instrumented-app.c +++ b/doc/examples/trigger-condition-event-matches/instrumented-app.c @@ -8,12 +8,13 @@ #include "tracepoint-trigger-example.h" #include + #include #include #include #include -int main(int argc, char **argv) +int main(void) { uint64_t i; @@ -25,10 +26,10 @@ int main(int argc, char **argv) gettimeofday(&tv, NULL); the_time = tv.tv_sec; - strftime(time_str, sizeof(time_str), "[%m-%d-%Y] %T", - localtime(&the_time)); + strftime(time_str, sizeof(time_str), "[%m-%d-%Y] %T", localtime(&the_time)); printf("%s.%ld - Tracing event \"trigger_example:my_event\"\n", - time_str, tv.tv_usec); + time_str, + tv.tv_usec); tracepoint(trigger_example, my_event, i); sleep(2);