X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Ftext%2FtextDump.c;h=395b996ed2be7d371f9641ffcf18c4405f927028;hb=b1794effb12e2cc4c0c67dbf661792b86588f694;hp=37dcf7d31997b7a873523340597335f9b08b5348;hpb=b91e751bfd4702dd0e73008727b38d9043f609c5;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/text/textDump.c b/ltt/branches/poly/lttv/modules/text/textDump.c index 37dcf7d3..395b996e 100644 --- a/ltt/branches/poly/lttv/modules/text/textDump.c +++ b/ltt/branches/poly/lttv/modules/text/textDump.c @@ -36,9 +36,7 @@ #include #include #include -#include #include -#include #include static gboolean @@ -336,13 +334,14 @@ static int write_event_content(void *hook_data, void *call_data) return FALSE; lttv_event_to_string(e, a_string, TRUE, a_field_names, tfs); - g_string_append_printf(a_string,"\n"); if(a_state) { g_string_append_printf(a_string, " %s ", g_quark_to_string(process->state->s)); } + g_string_append_printf(a_string,"\n"); + fputs(a_string->str, a_file); return FALSE; } @@ -371,7 +370,7 @@ static void init() LTTV_OPT_NONE, &a_field_names, NULL, NULL); a_state = FALSE; - lttv_option_add("process_state", 's', + lttv_option_add("process_state", 'r', "write the pid and state for each event", "", LTTV_OPT_NONE, &a_state, NULL, NULL);