From: compudj Date: Wed, 10 Oct 2007 22:10:18 +0000 (+0000) Subject: add enum workaround X-Git-Tag: v0.12.20~851 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=deb8b4b2eeba96244d267f1f15f9d263c7ab2df8;p=lttv.git add enum workaround git-svn-id: http://ltt.polymtl.ca/svn@2638 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/Makefile.am b/ltt/branches/poly/ltt/Makefile.am index ba8efaed..df6f1bec 100644 --- a/ltt/branches/poly/ltt/Makefile.am +++ b/ltt/branches/poly/ltt/Makefile.am @@ -21,6 +21,7 @@ lttinclude_HEADERS = \ ltt.h\ time.h\ trace.h\ + marker-desc.h \ ltt-types.h EXTRA_DIST = crc32.tab diff --git a/ltt/branches/poly/lttv/lttv/state.c b/ltt/branches/poly/lttv/lttv/state.c index eda3bf02..be3483c5 100644 --- a/ltt/branches/poly/lttv/lttv/state.c +++ b/ltt/branches/poly/lttv/lttv/state.c @@ -2866,23 +2866,19 @@ static gboolean enum_process_state(void *hook_data, void *call_data) /* type */ f = lttv_trace_get_hook_field(th, 3); - type = ltt_enum_string_get(ltt_field_type(f), - ltt_event_get_unsigned(e, f)); + type = ltt_enum_string_get(f, ltt_event_get_unsigned(e, f)); /* mode */ f = lttv_trace_get_hook_field(th, 4); - mode = ltt_enum_string_get(ltt_field_type(f), - ltt_event_get_unsigned(e, f)); + mode = ltt_enum_string_get(f,ltt_event_get_unsigned(e, f)); /* submode */ f = lttv_trace_get_hook_field(th, 5); - submode = ltt_enum_string_get(ltt_field_type(f), - ltt_event_get_unsigned(e, f)); + submode = ltt_enum_string_get(f, ltt_event_get_unsigned(e, f)); /* status */ f = lttv_trace_get_hook_field(th, 6); - status = ltt_enum_string_get(ltt_field_type(f), - ltt_event_get_unsigned(e, f)); + status = ltt_enum_string_get(f, ltt_event_get_unsigned(e, f)); /* TGID */ f = lttv_trace_get_hook_field(th, 7);