libtraceevent: fix parsing event argument types
PATCH 1/1 libtraceevent: fix parsing event argument types
Add missing "%o" and "%X". Ext4 events use "%o" for printing i_mode.
Signed-off-by Konstantin Khlebnikov <[email protected]>
--- tools/lib/traceevent/event-parse.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
tools/lib/traceevent/event-parse.c +5 -2
@@ -4395,8 +4395,10 @@ static struct tep_print_arg *make_bprint_args(char *fmt, void *data, int size, s/* fall through */ case 'd' :case 'u' : -case 'x' :case 'i' : +case 'x' : +case 'X' : +case 'o' :switch (ls) {case 0 : vsize =4 ;
@@ -5078,10 +5080,11 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct tep_e/* fall through */ case 'd' : +case 'u' :case 'i' :case 'x' :case 'X' : -case 'u' : +case 'o' :if (!arg) {do_warning_event (event,"no argument match" ); event->flags |=TEP_EVENT_FL_FAILED ;