tools lib traceevent: Get rid of die() from pretty_print()
authorNamhyung Kim <namhyung.kim@lge.com>
Fri, 7 Sep 2012 02:49:45 +0000 (11:49 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 7 Sep 2012 15:14:30 +0000 (12:14 -0300)
commit245c5a18433090da0e1a799bdb0faa78552b5992
tree96dcb05214f91cb66cfde7a07ba0f8a561a598c5
parent9a2936878a198553a17d21d1e843aa574ad9fa38
tools lib traceevent: Get rid of die() from pretty_print()

There are three cases that call die() in the pretty_print.

 1. insufficient number of argument: cannot proceed anymore.
 2. too long format conversion specifier: truncate and proceed.
 3. bad size specifier in format string: skip and proceed.

For all cases, convert die to do_warning, mark the event as
EVENT_FL_FAILED and print error message at the last.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1346986187-5170-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c