libbpf: Improve error logging for mismatched BTF kind cases
authorAndrii Nakryiko <andriin@fb.com>
Tue, 18 Aug 2020 22:39:13 +0000 (15:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Aug 2020 01:12:45 +0000 (18:12 -0700)
commit81ba0889027505b7d5136319117e473a69a923c4
tree957ecedc2c468935e1507297557bbcf4d3f35b60
parenta12a625ce7db91c8904233d6bec31c2cc935001f
libbpf: Improve error logging for mismatched BTF kind cases

Instead of printing out integer value of BTF kind, print out a string
representation of a kind.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200818223921.2911963-2-andriin@fb.com
tools/lib/bpf/libbpf.c