projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove a whitespace
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
modules
/
text
/
textDump.c
diff --git
a/ltt/branches/poly/lttv/modules/text/textDump.c
b/ltt/branches/poly/lttv/modules/text/textDump.c
index ea689e2e217b6831921b453ccb1e6b2b3a3a45e4..2e2e6c53fea9358c16362093441528eaf46ca9a7 100644
(file)
--- a/
ltt/branches/poly/lttv/modules/text/textDump.c
+++ b/
ltt/branches/poly/lttv/modules/text/textDump.c
@@
-36,13
+36,11
@@
#include <lttv/print.h>
#include <ltt/ltt.h>
#include <ltt/event.h>
#include <lttv/print.h>
#include <ltt/ltt.h>
#include <ltt/event.h>
-#include <ltt/type.h>
#include <ltt/trace.h>
#include <ltt/trace.h>
-#include <ltt/facility.h>
#include <stdio.h>
static gboolean
#include <stdio.h>
static gboolean
- a_field_names,
+ a_
no_
field_names,
a_state,
a_cpu_stats,
a_process_stats,
a_state,
a_cpu_stats,
a_process_stats,
@@
-335,14
+333,15
@@
static int write_event_content(void *hook_data, void *call_data)
tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
- lttv_event_to_string(e, a_string, TRUE, a_field_names, tfs);
- g_string_append_printf(a_string,"\n");
+ lttv_event_to_string(e, a_string, TRUE, !a_no_field_names, tfs);
if(a_state) {
g_string_append_printf(a_string, " %s ",
g_quark_to_string(process->state->s));
}
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;
}
fputs(a_string->str, a_file);
return FALSE;
}
@@
-364,11
+363,11
@@
static void init()
"file name",
LTTV_OPT_STRING, &a_file_name, NULL, NULL);
"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',
a_state = FALSE;
lttv_option_add("process_state", 'r',
This page took
0.030955 seconds
and
4
git commands to generate.