Skip to content

Commit 6b412f7

Browse files
Zhang ChujunKernel Patches Daemon
authored andcommitted
tools:bpf: 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]>
1 parent 2991dd5 commit 6b412f7

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)