Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpftool: Fix missing closing parethesis for BTF_KIND_UNKN

In the btf_dumper_do_type function, the debug print statement for
BTF_KIND_UNKN was missing a closing parenthesis in the output format.
This patch adds the missing ')' to ensure proper formatting of the
dump output.

Signed-off-by: Zhang Chujun <zhangchujun@cmss.chinamobile.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20251028063345.1911-1-zhangchujun@cmss.chinamobile.com

authored by

Zhang Chujun and committed by
Andrii Nakryiko
88427328 f9db3a38

+1 -1
+1 -1
tools/bpf/bpftool/btf_dumper.c
··· 590 590 case BTF_KIND_DATASEC: 591 591 return btf_dumper_datasec(d, type_id, data); 592 592 default: 593 - jsonw_printf(d->jw, "(unsupported-kind"); 593 + jsonw_printf(d->jw, "(unsupported-kind)"); 594 594 return -EINVAL; 595 595 } 596 596 }