diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-08-27 09:38:43 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-08-27 09:38:43 -0400 |
commit | fb1d26bf28749d2ad485ccea4eb92214bae73982 (patch) | |
tree | 9908796ecf6b2f0a4713f3f5bf4c1e4b9aad3161 | |
parent | c93e4e9da57c3c002d67c740ad9e46b55ba3c9cf (diff) | |
download | trace-cmd-fb1d26bf28749d2ad485ccea4eb92214bae73982.tar.gz |
event-parse: Allow for negative numbers in print format
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>
-rw-r--r-- | event-parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/event-parse.c b/event-parse.c index 1e28f767..e318601f 100644 --- a/event-parse.c +++ b/event-parse.c @@ -4757,6 +4757,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) |