Skip to content

Commit b851192

Browse files
committed
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]>
1 parent 87162d8 commit b851192

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/lib/traceevent/event-parse.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ static int event_read_fields(struct event_format *event, struct format_field **f
12701270
}
12711271

12721272
if (!field->type) {
1273-
die("no type found");
1273+
do_warning("%s: no type found", __func__);
12741274
goto fail;
12751275
}
12761276
field->name = last_token;
@@ -1317,7 +1317,7 @@ static int event_read_fields(struct event_format *event, struct format_field **f
13171317
free_token(token);
13181318
type = read_token(&token);
13191319
if (type == EVENT_NONE) {
1320-
die("failed to find token");
1320+
do_warning("failed to find token");
13211321
goto fail;
13221322
}
13231323
}
@@ -1669,7 +1669,7 @@ process_op(struct event_format *event, struct print_arg *arg, char **tok)
16691669
if (arg->type == PRINT_OP && !arg->op.left) {
16701670
/* handle single op */
16711671
if (token[1]) {
1672-
die("bad op token %s", token);
1672+
do_warning("bad op token %s", token);
16731673
goto out_free;
16741674
}
16751675
switch (token[0]) {

0 commit comments

Comments
 (0)