diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-11-09 13:50:33 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-11-09 15:35:31 -0500 |
commit | 7a905611644c015e68a955f263fd0a4b7b20879d (patch) | |
tree | 243eb71518d4b5e3fbd6796d654df0dd45d4031c /tools | |
parent | e46466b8bd5918626250dc0d6cb6c2147a611087 (diff) |
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 <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/n/tip-c68zkvxw4289uqbosfkz963g@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 38d6595891a4..669953ab32eb 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -5101,6 +5101,7 @@ int pevent_strerror(struct pevent *pevent __maybe_unused, | |||
5101 | case PEVENT_ERRNO__READ_FORMAT_FAILED: | 5101 | case PEVENT_ERRNO__READ_FORMAT_FAILED: |
5102 | case PEVENT_ERRNO__READ_PRINT_FAILED: | 5102 | case PEVENT_ERRNO__READ_PRINT_FAILED: |
5103 | case PEVENT_ERRNO__OLD_FTRACE_ARG_FAILED: | 5103 | case PEVENT_ERRNO__OLD_FTRACE_ARG_FAILED: |
5104 | case PEVENT_ERRNO__INVALID_ARG_TYPE: | ||
5104 | snprintf(buf, buflen, "%s", msg); | 5105 | snprintf(buf, buflen, "%s", msg); |
5105 | break; | 5106 | break; |
5106 | 5107 | ||