On Fri, Feb 5, 2021 at 5:42 AM Giuliano Procida [off-list ref] 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 <redacted>
---
Acked-by: Andrii Nakryiko <andrii@kernel.org>
quoted hunk ↗ jump to hunk
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"
[...]