libbpf: make libbpf_strerror_r agnostic to sign of error
authorAndrii Nakryiko <andriin@fb.com>
Mon, 1 Jul 2019 23:58:55 +0000 (16:58 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Jul 2019 20:37:30 +0000 (22:37 +0200)
commitd66f43666a6811bcc3e529d5a088e1bdde94ca1b
tree28edae2fc3fa048150cf120724f23273e9c24a7c
parentc4cde5804d512a2f8934017dbf7df642dfbdf2ad
libbpf: make libbpf_strerror_r agnostic to sign of error

It's often inconvenient to switch sign of error when passing it into
libbpf_strerror_r. It's better for it to handle that automatically.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/str_error.c