Messages in this thread | | | Subject | Re: [PATCH 2/3] tools lib traceevent: Introduce pevent_errno | From | Steven Rostedt <> | Date | Tue, 12 Jun 2012 13:57:39 -0400 |
| |
On Tue, 2012-06-12 at 16:42 +0900, Namhyung Kim wrote: > From: Namhyung Kim <namhyung.kim@lge.com> > > Define and use error numbers for pevent_parse_event() > and get rid of die() and do_warning() calls. If the > function returns non-zero value, the caller can check > the return code and do appropriate things. > > I chose the error numbers to be negative not to clash > with standard errno, and as usual, 0 for success. > > Cc: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
- Steve
> Signed-off-by: Namhyung Kim <namhyung@kernel.org> > --- > tools/lib/traceevent/event-parse.c | 50 +++++++++++++++++++++--------------- > tools/lib/traceevent/event-parse.h | 26 +++++++++++++++++-- > 2 files changed, 54 insertions(+), 22 deletions(-) >
| |