X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=trunk%2Flttv%2Flttv%2Flttv%2Fbatchtest.c;h=be60bb41e2b00d5474e35fff115f6e262d376954;hb=43ed82b5b0a7de73d473ec7e6f8802e18d729ec3;hp=2f5fce8391366600c7884addf640b461dd95895e;hpb=4ad053dfb73552faef1acc273a816ecf49e25b14;p=lttv.git diff --git a/trunk/lttv/lttv/lttv/batchtest.c b/trunk/lttv/lttv/lttv/batchtest.c index 2f5fce83..be60bb41 100644 --- a/trunk/lttv/lttv/lttv/batchtest.c +++ b/trunk/lttv/lttv/lttv/batchtest.c @@ -25,6 +25,7 @@ #endif #include +#include #include #include #include @@ -170,7 +171,7 @@ gboolean trace_event(void __UNUSED__ *hook_data, void *call_data) LttEvent *e = ltt_tracefile_get_event(tfs->parent.tf); ltt_event_position(e, a_event_position); ltt_event_position_get(a_event_position, &tf, &nb_block, &offset, &tsc); - fprintf(stderr,"Event %s %lu.%09lu [%u 0x%x tsc %llu]\n", + fprintf(stderr, "Event %s %lu.%09lu [%u 0x%x tsc %" PRIu64 "]\n", g_quark_to_string(marker_get_info_from_id(tf->mdata, ltt_event_id(e))->name), tfs->parent.timestamp.tv_sec, tfs->parent.timestamp.tv_nsec, @@ -334,7 +335,7 @@ static void compute_tracefile(LttTracefile *tracefile, void *hook_data) ltt_event_position(event, a_event_position); ltt_event_position_get(a_event_position, &tf_pos, &nb_block, &offset, &tsc); //fprintf(fp,"%s.%s: %llu %lu.%09lu position %u/%u\n", - fprintf(fp, "%s: %llu %lu.%09lu position %u/%u, tracefile %s\n", + fprintf(fp, "%s: %" PRIu64 " %lu.%09lu position %u/%u, tracefile %s\n", g_quark_to_string(minfo->name), tsc, (unsigned long)time.tv_sec, (unsigned long)time.tv_nsec,