From 14bc9b7c68fe5eb3d0177ed45bfced546957fdce Mon Sep 17 00:00:00 2001 From: Benjamin Poirier Date: Thu, 8 Oct 2009 18:12:22 -0400 Subject: [PATCH] Trivial fixes Signed-off-by: Benjamin Poirier --- lttv/lttv/Makefile.am | 18 ++++++++++++++---- lttv/lttv/print.c | 25 ++++++++++++------------- lttv/lttv/tracecontext.c | 2 +- 3 files changed, 27 insertions(+), 18 deletions(-) diff --git a/lttv/lttv/Makefile.am b/lttv/lttv/Makefile.am index e63f4d7f..4129f4b0 100644 --- a/lttv/lttv/Makefile.am +++ b/lttv/lttv/Makefile.am @@ -39,10 +39,20 @@ libdir = ${lttvplugindir} #noinst_HEADERS = \ # filter.h -lttv_real_SOURCES = batchtest.c main.c module.c option.c \ - hook.c attribute.c \ - iattribute.c state.c stats.c \ - tracecontext.c traceset.c filter.c print.c +lttv_real_SOURCES = \ + batchtest.c\ + main.c\ + module.c\ + option.c\ + hook.c\ + attribute.c\ + iattribute.c\ + state.c\ + stats.c\ + tracecontext.c\ + traceset.c\ + filter.c\ + print.c #man_MANS = lttv.1 #EXTRA_DIST = lttv.1 diff --git a/lttv/lttv/print.c b/lttv/lttv/print.c index b303900a..53873d22 100644 --- a/lttv/lttv/print.c +++ b/lttv/lttv/print.c @@ -276,21 +276,20 @@ void lttv_event_to_string(LttEvent *e, GString *s, if(mandatory_fields) { time = ltt_event_time(e); g_string_append_printf(s,"%s.%s: %ld.%09ld (%s/%s_%u)", - g_quark_to_string(ltt_tracefile_name(tfs->parent.tf)), - g_quark_to_string(info->name), - (long)time.tv_sec, time.tv_nsec, - g_quark_to_string( - ltt_trace_name(ltt_tracefile_get_trace(tfs->parent.tf))), - g_quark_to_string(ltt_tracefile_name(tfs->parent.tf)), - cpu); + g_quark_to_string(ltt_tracefile_name(tfs->parent.tf)), + g_quark_to_string(info->name), (long)time.tv_sec, time.tv_nsec, + g_quark_to_string( + ltt_trace_name(ltt_tracefile_get_trace(tfs->parent.tf))), + g_quark_to_string(ltt_tracefile_name(tfs->parent.tf)), cpu); /* Print the process id and the state/interrupt type of the process */ g_string_append_printf(s,", %u, %u, %s, %s, %u, 0x%" PRIx64", %s", - process->pid, - process->tgid, - g_quark_to_string(process->name), - g_quark_to_string(process->brand), - process->ppid, process->current_function, - g_quark_to_string(process->state->t)); + process->pid, + process->tgid, + g_quark_to_string(process->name), + g_quark_to_string(process->brand), + process->ppid, + process->current_function, + g_quark_to_string(process->state->t)); } if(marker_get_num_fields(info) == 0) return; diff --git a/lttv/lttv/tracecontext.c b/lttv/lttv/tracecontext.c index edb465ba..710cdecb 100644 --- a/lttv/lttv/tracecontext.c +++ b/lttv/lttv/tracecontext.c @@ -101,7 +101,7 @@ lttv_context_new_tracefile_context(LttvTracesetContext *self) /**************************************************************************** * lttv_traceset_context_compute_time_span * - * Keep the time span is sync with on the fly addition and removal of traces + * Keep the time span in sync with on the fly addition and removal of traces * in a trace set. It must be called each time a trace is added/removed from * the traceset. It could be more efficient to call it only once a bunch * of traces are loaded, but the calculation is not long, so it's not -- 2.34.1