Skip to content

Commit 8842732

Browse files
Zhang Chujunanakryiko
authored andcommitted
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent f9db3a3 commit 8842732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/bpf/bpftool/btf_dumper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ static int btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id,
590590
case BTF_KIND_DATASEC:
591591
return btf_dumper_datasec(d, type_id, data);
592592
default:
593-
jsonw_printf(d->jw, "(unsupported-kind");
593+
jsonw_printf(d->jw, "(unsupported-kind)");
594594
return -EINVAL;
595595
}
596596
}

0 commit comments

Comments
 (0)