From: compudj Date: Thu, 11 Oct 2007 13:43:38 +0000 (+0000) Subject: print field names by default X-Git-Tag: v0.12.20~837 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b5ad5a5d43826a9799f057aa0b414b90456863fd;p=lttv.git print field names by default git-svn-id: http://ltt.polymtl.ca/svn@2652 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/text/textDump.c b/ltt/branches/poly/lttv/modules/text/textDump.c index 395b996e..1f27e0f7 100644 --- a/ltt/branches/poly/lttv/modules/text/textDump.c +++ b/ltt/branches/poly/lttv/modules/text/textDump.c @@ -40,7 +40,7 @@ #include static gboolean - a_field_names, + a_no_field_names, a_state, a_cpu_stats, a_process_stats, @@ -333,7 +333,7 @@ static int write_event_content(void *hook_data, void *call_data) tfc->t_context->t,tfc,NULL,NULL)) return FALSE; - lttv_event_to_string(e, a_string, TRUE, a_field_names, tfs); + lttv_event_to_string(e, a_string, TRUE, !a_no_field_names, tfs); if(a_state) { g_string_append_printf(a_string, " %s ", @@ -363,11 +363,11 @@ static void init() "file name", LTTV_OPT_STRING, &a_file_name, NULL, NULL); - a_field_names = FALSE; - lttv_option_add("field_names", 'l', - "write the field names for each event", + a_no_field_names = FALSE; + lttv_option_add("field_names", 's', + "do not write the field names for each event", "", - LTTV_OPT_NONE, &a_field_names, NULL, NULL); + LTTV_OPT_NONE, &a_no_field_names, NULL, NULL); a_state = FALSE; lttv_option_add("process_state", 'r',