lkml.org 
[lkml]   [2012]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/3] tools lib traceevent: Introduce pevent_errno
From
Date
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(-)
>




\
 
 \ /
  Last update: 2012-06-13 00:04    [W:0.111 / U:1.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site