From 76373d36bc73cd876b20a1ca173aeb35b1209d0c Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 16 Dec 2005 19:10:40 +0000 Subject: [PATCH] iterate on event fields git-svn-id: http://ltt.polymtl.ca/svn@1400 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/print.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ltt/branches/poly/lttv/lttv/print.c b/ltt/branches/poly/lttv/lttv/print.c index 95ea97be..b0f1d588 100644 --- a/ltt/branches/poly/lttv/lttv/print.c +++ b/ltt/branches/poly/lttv/lttv/print.c @@ -165,11 +165,12 @@ void lttv_event_to_string(LttEvent *e, GString *s, LttvTraceState *ts = (LttvTraceState*)tfs->parent.t_context; LttvProcessState *process = ts->running_process[cpu]; + guint i, num_fields; + g_string_set_size(s,0); facility = ltt_event_facility(e); event_type = ltt_event_eventtype(e); - field = ltt_event_field(e); if(mandatory_fields) { time = ltt_event_time(e); @@ -184,9 +185,12 @@ void lttv_event_to_string(LttEvent *e, GString *s, process->ppid, g_quark_to_string(process->state->t)); } - - if(field) + + num_fields = ltt_event_num_fields(e); + for(i=0; i