Skip to content

Commit 7a90561

Browse files
committed
tools lib traceevent: Handle INVALID_ARG_TYPE errno in pevent_strerror
gcc on f14 32-bit rightly complains: tools/lib/traceevent/event-parse.c:5097:2: error: enumeration value ‘PEVENT_ERRNO__INVALID_ARG_TYPE’ not handled in switch The entry for it is in the error strings array pevent_error_str[]: _PE(INVALID_ARG_TYPE, "invalid argument type") It was just not being handled on the pevent_strerror switch, fix it. Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Steven Rostedt <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent e46466b commit 7a90561

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/lib/traceevent/event-parse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5101,6 +5101,7 @@ int pevent_strerror(struct pevent *pevent __maybe_unused,
51015101
case PEVENT_ERRNO__READ_FORMAT_FAILED:
51025102
case PEVENT_ERRNO__READ_PRINT_FAILED:
51035103
case PEVENT_ERRNO__OLD_FTRACE_ARG_FAILED:
5104+
case PEVENT_ERRNO__INVALID_ARG_TYPE:
51045105
snprintf(buf, buflen, "%s", msg);
51055106
break;
51065107

0 commit comments

Comments
 (0)