diff options
author | Ian Rogers <irogers@google.com> | 2021-09-20 11:37:15 -0700 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-10-12 14:22:27 -0400 |
commit | 60db83e60b321eee516d026d84e53ed6ca6891be (patch) | |
tree | 2a0a7d46f57b8412397b5d84f326e513a7b68862 | |
parent | abc67406d710e73b61ccdd7a880d3d5744ce827c (diff) | |
download | libtraceevent-60db83e60b321eee516d026d84e53ed6ca6891be.tar.gz |
libtraceevent: Fix flag check in print_field()
Correct a typo in an operator which resolves a clang warning:
src/event-parse.c:5408:41: error: converting the enum constant to a boolean [-Werror,-Wint-in-bool-context]
if (field->flags & (TEP_FIELD_IS_ARRAY || TEP_FIELD_IS_STRING))
^
Link: https://lore.kernel.org/linux-trace-devel/20210920183715.33377-1-irogers@google.com
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rw-r--r-- | src/event-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event-parse.c b/src/event-parse.c index 8057fb5..7063758 100644 --- a/src/event-parse.c +++ b/src/event-parse.c @@ -5405,7 +5405,7 @@ void static inline print_field(struct trace_seq *s, void *data, if (!parse || event->flags & TEP_EVENT_FL_FAILED) goto out; - if (field->flags & (TEP_FIELD_IS_ARRAY || TEP_FIELD_IS_STRING)) + if (field->flags & (TEP_FIELD_IS_ARRAY | TEP_FIELD_IS_STRING)) goto out; start_parse = parse; |