mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
tools lib traceevent: Fix afterlife gotos
Instead of dying, just use do_warning and let the goto that is there to take place. Reviewed-by: Namhyung Kim <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Namhyung Kim <[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]>
This commit is contained in:
parent
87162d816f
commit
b85119200d
1 changed files with 3 additions and 3 deletions
|
|
@ -1270,7 +1270,7 @@ static int event_read_fields(struct event_format *event, struct format_field **f
|
|||
}
|
||||
|
||||
if (!field->type) {
|
||||
die("no type found");
|
||||
do_warning("%s: no type found", __func__);
|
||||
goto fail;
|
||||
}
|
||||
field->name = last_token;
|
||||
|
|
@ -1317,7 +1317,7 @@ static int event_read_fields(struct event_format *event, struct format_field **f
|
|||
free_token(token);
|
||||
type = read_token(&token);
|
||||
if (type == EVENT_NONE) {
|
||||
die("failed to find token");
|
||||
do_warning("failed to find token");
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
|
@ -1669,7 +1669,7 @@ process_op(struct event_format *event, struct print_arg *arg, char **tok)
|
|||
if (arg->type == PRINT_OP && !arg->op.left) {
|
||||
/* handle single op */
|
||||
if (token[1]) {
|
||||
die("bad op token %s", token);
|
||||
do_warning("bad op token %s", token);
|
||||
goto out_free;
|
||||
}
|
||||
switch (token[0]) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue