diff options
author | Toke Høiland-Jørgensen <toke@redhat.com> | 2020-08-13 16:29:05 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-08-13 22:30:31 +0200 |
commit | 23ab656be263813acc3c20623757d3cd1496d9e1 (patch) | |
tree | d06549aeba7a768fb50051dde65d3d8fb616fb56 /tools/lib/perf | |
parent | b33164f2bd1cedb094c32cb466287116164457ae (diff) | |
download | linux-23ab656be263813acc3c20623757d3cd1496d9e1.tar.bz2 |
libbpf: Prevent overriding errno when logging errors
Turns out there were a few more instances where libbpf didn't save the
errno before writing an error message, causing errno to be overridden by
the printf() return and the error disappearing if logging is enabled.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200813142905.160381-1-toke@redhat.com
Diffstat (limited to 'tools/lib/perf')
0 files changed, 0 insertions, 0 deletions