All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools lib traceeveent: Allow for negative numbers in print format
@ 2015-08-27 13:46 Steven Rostedt
  2015-08-27 13:55 ` Vlastimil Babka
  2015-08-31  8:30 ` [tip:perf/core] " tip-bot for Steven Rostedt
  0 siblings, 2 replies; 4+ messages in thread
From: Steven Rostedt @ 2015-08-27 13:46 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: LKML, Namhyung Kim, Vlastimil Babka


It was reported that "%-8s" does not parse well when used in the printk
format. The '-' is what is throwing it off. Allow that to be included.

Reported-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 tools/lib/traceevent/event-parse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index cc25f059ab3d..3b01ae137d95 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -4754,6 +4754,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event
 			case 'z':
 			case 'Z':
 			case '0' ... '9':
+			case '-':
 				goto cont_process;
 			case 'p':
 				if (pevent->long_size == 4)
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-31  8:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27 13:46 [PATCH] tools lib traceeveent: Allow for negative numbers in print format Steven Rostedt
2015-08-27 13:55 ` Vlastimil Babka
2015-08-27 14:15   ` Arnaldo Carvalho de Melo
2015-08-31  8:30 ` [tip:perf/core] " tip-bot for Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.