X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2Ftrigger-condition-event-matches%2Finstrumented-app.c;h=6148d1c090d3abd298e514accf94292ff35dd4d4;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hp=465b4a123c6646f497614fa16dfe4c17a06315d2;hpb=f250b40e2179eccdb83766bf4abef5a35036c47b;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 465b4a123..6148d1c09 100644 --- a/doc/examples/trigger-condition-event-matches/instrumented-app.c +++ b/doc/examples/trigger-condition-event-matches/instrumented-app.c @@ -8,6 +8,7 @@ #include "tracepoint-trigger-example.h" #include + #include #include #include @@ -25,10 +26,10 @@ int main(void) 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);