On Fri, Feb 5, 2021 at 5:42 AM Giuliano Procida <gprocida@xxxxxxxxxx> wrote: > > This adds elf_error which prepends error messages with the function > and appends a readable ELF error status. > > Also capitalise ELF consistently in error messages. > > Signed-off-by: Giuliano Procida <gprocida@xxxxxxxxxx> > --- Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > libbtf.c | 34 +++++++++++++++++++--------------- > 1 file changed, 19 insertions(+), 15 deletions(-) > > diff --git a/libbtf.c b/libbtf.c > index 9f76283..7bc49ba 100644 > --- a/libbtf.c > +++ b/libbtf.c > @@ -27,6 +27,16 @@ > #include "dwarves.h" > #include "elf_symtab.h" > [...]