From: Zhang Chujun Date: Tue, 28 Oct 2025 06:33:45 +0000 (+0800) Subject: bpftool: Fix missing closing parethesis for BTF_KIND_UNKN X-Git-Tag: v6.19-rc1~171^2~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88427328e35dfd8532cd78e9cc9e2b7c97be34c3;p=thirdparty%2Flinux.git 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 Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20251028063345.1911-1-zhangchujun@cmss.chinamobile.com --- diff --git a/tools/bpf/bpftool/btf_dumper.c b/tools/bpf/bpftool/btf_dumper.c index ff12628593aec..def297e879f45 100644 --- a/tools/bpf/bpftool/btf_dumper.c +++ b/tools/bpf/bpftool/btf_dumper.c @@ -590,7 +590,7 @@ static int btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id, case BTF_KIND_DATASEC: return btf_dumper_datasec(d, type_id, data); default: - jsonw_printf(d->jw, "(unsupported-kind"); + jsonw_printf(d->jw, "(unsupported-kind)"); return -EINVAL; } }