diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-11-20 15:21:48 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-11-20 15:24:36 -0500 |
commit | 0ad6fbb6cb5e6c91adad4a977e1fae786c0ebe02 (patch) | |
tree | cf58e93a581a2a0a69d790e3cf172285f80a76f0 | |
parent | 6a76b75a7cb2b9a7a8c867c2cd3df683fe93425e (diff) |
Do not die on bad op in process_op
Instead of killing the program, simply warn and continue when we
encounter a bad op.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | parse-events.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/parse-events.c b/parse-events.c index ab97938..cbd9773 100644 --- a/parse-events.c +++ b/parse-events.c | |||
@@ -1191,7 +1191,7 @@ process_op(struct event *event, struct print_arg *arg, char **tok) | |||
1191 | case '-': | 1191 | case '-': |
1192 | break; | 1192 | break; |
1193 | default: | 1193 | default: |
1194 | die("bad op token %s", token); | 1194 | warning("bad op token %s", token); |
1195 | return EVENT_ERROR; | 1195 | return EVENT_ERROR; |
1196 | } | 1196 | } |
1197 | 1197 | ||
@@ -1732,6 +1732,8 @@ process_arg_token(struct event *event, struct print_arg *arg, | |||
1732 | arg->op.op = token; | 1732 | arg->op.op = token; |
1733 | arg->op.left = NULL; | 1733 | arg->op.left = NULL; |
1734 | type = process_op(event, arg, &token); | 1734 | type = process_op(event, arg, &token); |
1735 | if (type == EVENT_ERROR) | ||
1736 | return type; | ||
1735 | 1737 | ||
1736 | break; | 1738 | break; |
1737 | 1739 | ||