Commit 88427328 authored by Zhang Chujun's avatar Zhang Chujun Committed by Andrii Nakryiko
Browse files

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: default avatarZhang Chujun <zhangchujun@cmss.chinamobile.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20251028063345.1911-1-zhangchujun@cmss.chinamobile.com
parent f9db3a38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}
}