X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2FtextDump.c;h=646cb0812123ae9bc5d23baac04e3a465ac18515;hb=c432246e06bb83a3d43a6668517486fb6b4b959d;hp=e4c8d5c736b2f7a22759e4946d69f97a162dc88e;hpb=ba576a781d5a1020ff7202ac9a959c9f4a0c7a4c;p=lttv.git diff --git a/ltt/branches/poly/lttv/textDump.c b/ltt/branches/poly/lttv/textDump.c index e4c8d5c7..646cb081 100644 --- a/ltt/branches/poly/lttv/textDump.c +++ b/ltt/branches/poly/lttv/textDump.c @@ -79,9 +79,9 @@ void print_field(LttEvent *e, LttField *f, GString *s, gboolean field_names) { nb = ltt_type_member_number(type); for(i = 0 ; i < nb ; i++) { element = ltt_field_member(f,i); - if(name) { + if(field_names) { ltt_type_member_type(type, i, &name); - g_string_append_printf(s, " %s = ", field_names); + g_string_append_printf(s, " %s = ", name); } print_field(e, element, s, field_names); } @@ -115,6 +115,7 @@ void lttv_event_to_string(LttEvent *e, LttTracefile *tf, GString *s, g_string_append_printf(s,"%s.%s: %ld.%ld (%s)",ltt_facility_name(facility), ltt_eventtype_name(event_type), (long)time.tv_sec, time.tv_nsec, ltt_tracefile_name(tf)); + /* Print the process id and the state/interrupt type of the process */ } print_field(e, field, s, field_names);