]> git.baikalelectronics.ru Git - kernel.git/commit
tools lib traceevent: Remove extra '\n' in print_event_time()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 4 Mar 2020 04:18:52 +0000 (23:18 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 4 Mar 2020 13:34:10 +0000 (10:34 -0300)
commitdf66408efbb61c52721b1b47d8a3d4fc6f7b2da9
tree70921e6f31688fa1025952a7f1c164b7f706787c
parent82f5e1ba9019071a5b2fb0f352621f90b0a9fd95
tools lib traceevent: Remove extra '\n' in print_event_time()

If the precision of print_event_time() is zero or greater than the
timestamp, it uses a different format. But that format had an extra new
line at the end, and caused the output to not look right:

cpus=2
           sleep-3946  [001]111264306005
: function:             inotify_inode_queue_event
           sleep-3946  [001]111264307158
: function:             __fsnotify_parent
           sleep-3946  [001]111264307637
: function:             inotify_dentry_parent_queue_event
           sleep-3946  [001]111264307989
: function:             fsnotify
           sleep-3946  [001]111264308401
: function:             audit_syscall_exit

Fixes: 0ae762f907ca ("libtraceevent, perf tools: Changes in tep_print_event_* APIs")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/20200303231852.6ab6882f@oasis.local.home
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c