bpf/btf: Use btf_type_str() whenever possible
authorPeilin Ye <peilin.ye@bytedance.com>
Fri, 16 Sep 2022 20:28:00 +0000 (13:28 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Sat, 17 Sep 2022 00:09:38 +0000 (17:09 -0700)
commit571f9738bfb3d4b42253c1d0ad26da9fede85f36
treef8e260db16f1b547ac43c2b19427993e2a9679b3
parentdc567045f1590f6460d3e9a6ea6ad5e600b58b84
bpf/btf: Use btf_type_str() whenever possible

We have btf_type_str().  Use it whenever possible in btf.c, instead of
"btf_kind_str[BTF_INFO_KIND(t->info)]".

Signed-off-by: Peilin Ye <peilin.ye@bytedance.com>
Link: https://lore.kernel.org/r/20220916202800.31421-1-yepeilin.cs@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
kernel/bpf/btf.c