[PATCH 1/2] tools: format octets properly

From: Dmitry Monakhov
Date: Tue Sep 27 2016 - 11:50:13 EST


Currently "%o" not parsed properly and printed as '>o<'
# perf record -e ext4:ext4* touch new_file; perf script | grep "mode"

Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx>
---
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 664c90c..27dc1f8 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -4952,6 +4952,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event
case 'i':
case 'x':
case 'X':
+ case 'o':
case 'u':
if (!arg) {
do_warning_event(event, "no argument match");
--
2.7.4