From: Steven Rostedt (Red Hat) Date: Tue, 24 Mar 2015 13:57:51 +0000 (-0400) Subject: tools lib traceevent: Handle %z in bprint format X-Git-Tag: v4.9.8~4301^2~68^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55426296963c678650e26fc5e61ea75a5598ef5a;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Steven Rostedt Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: Shawn Bohrer Link: http://lkml.kernel.org/r/20150324135922.844361717@goodmis.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index e71c472..bdb1dd6 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 goto process_again; case '.': goto process_again; + case 'z': + case 'Z': + ls = 1; + goto process_again; case 'p': ls = 1; /* fall through */