[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPWQB7Fvz=MkHGRVPR924BXzuWuLn6VTqaNGR+x_TYhycdOLag@mail.gmail.com>
Date: Tue, 18 Oct 2016 15:52:18 -0700
From: Joe Stringer <joe@....org>
To: Eric Leblond <eric@...it.org>
Cc: netdev <netdev@...r.kernel.org>, wangnan0@...wei.com,
linux-kernel@...r.kernel.org, ast@...com
Subject: Re: [PATCH 1/8] tools lib bpf: add error functions
On 16 October 2016 at 14:18, Eric Leblond <eric@...it.org> wrote:
> The include of err.h is not explicitely needed in exported
> functions and it was causing include conflict with some existing
> code due to redefining some macros.
>
> To fix this, let's have error handling functions provided by the
> library. Furthermore this will allow user to have an homogeneous
> API.
>
> Signed-off-by: Eric Leblond <eric@...it.org>
Does it need to return the error like this or should we just fix up
the bpf_object__open() API to return errors in a simpler form?
There's already libbpf_set_print(...) for outputting errors, is it
reasonable to just change the library to return NULLs in error cases
instead?
Powered by blists - more mailing lists