aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2015-03-24 09:57:51 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-03-24 11:15:12 -0400
commit55426296963c678650e26fc5e61ea75a5598ef5a (patch)
treeedbac039f1fcf824ee279ac515581b0b5380034d /tools
parent99ad1417db2e83530b88e3eff1a40285d6ebfee9 (diff)
tools lib traceevent: Handle %z in bprint format
The %z printf specifier was not handled making trace_printk()s in the kernel that used this break on output. Reported-by: Shawn Bohrer <shawn.bohrer@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Shawn Bohrer <shawn.bohrer@gmail.com> Link: http://lkml.kernel.org/r/20150324135922.844361717@goodmis.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/traceevent/event-parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index e71c472d6a81..bdb1dd618e0e 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -4008,6 +4008,10 @@ static struct print_arg *make_bprint_args(char *fmt, void *data, int size, struc
4008 goto process_again; 4008 goto process_again;
4009 case '.': 4009 case '.':
4010 goto process_again; 4010 goto process_again;
4011 case 'z':
4012 case 'Z':
4013 ls = 1;
4014 goto process_again;
4011 case 'p': 4015 case 'p':
4012 ls = 1; 4016 ls = 1;
4013 /* fall through */ 4017 /* fall through */