X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Fprint.c;h=ef11b21c5ac2674fb492cb72de33e9dfcf8d651c;hb=cab321cf1e9fd164618942560cfb27f5561d21be;hp=f06c527c5a28e8d1346b062a1e4553639f3c6851;hpb=73e6c609eb72e2305c367b36bdc856da87ccb078;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/print.c b/ltt/branches/poly/lttv/lttv/print.c index f06c527c..ef11b21c 100644 --- a/ltt/branches/poly/lttv/lttv/print.c +++ b/ltt/branches/poly/lttv/lttv/print.c @@ -236,22 +236,26 @@ void lttv_event_to_string(LttEvent *e, GString *s, guint i, num_fields; - g_string_set_size(s,0); + s = g_string_set_size(s,0); facility = ltt_event_facility(e); event_type = ltt_event_eventtype(e); if(mandatory_fields) { time = ltt_event_time(e); - g_string_append_printf(s,"%s.%s: %ld.%09ld (%s_%u)", + g_string_append_printf(s,"%s.%s: %ld.%09ld (%s%s_%u)", g_quark_to_string(ltt_facility_name(facility)), g_quark_to_string(ltt_eventtype_name(event_type)), (long)time.tv_sec, time.tv_nsec, + g_quark_to_string( + ltt_trace_name(ltt_tracefile_get_trace(tfs->parent.tf))), g_quark_to_string(ltt_tracefile_name(tfs->parent.tf)), cpu); /* Print the process id and the state/interrupt type of the process */ - g_string_append_printf(s,", %u, %s, %u, 0x%llX, %s", process->pid, + g_string_append_printf(s,", %u, %u, %s, %s, %u, 0x%llX, %s", process->pid, + process->tgid, g_quark_to_string(process->name), + g_quark_to_string(process->brand), process->ppid, process->current_function, g_quark_to_string(process->state->t)); }