[PATCH 3/9] tools lib traceevent: Handle %z in bprint format

From: Steven Rostedt
Date: Tue Mar 24 2015 - 10:00:43 EST


From: "Steven Rostedt (Red Hat)" <rostedt@xxxxxxxxxxx>

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@xxxxxxxxx>
Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
---
tools/lib/traceevent/event-parse.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 9709e202a7e5..5795d9451063 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -4005,6 +4005,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 */
--
2.1.4


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/