diff options
Diffstat (limited to 'tools/bpf/bpftool/btf.c')
| -rw-r--r-- | tools/bpf/bpftool/btf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bpf/bpftool/btf.c b/tools/bpf/bpftool/btf.c index 58a2cd002a4b..7317438ecd9e 100644 --- a/tools/bpf/bpftool/btf.c +++ b/tools/bpf/bpftool/btf.c | |||
| @@ -208,8 +208,8 @@ static int dump_btf_type(const struct btf *btf, __u32 id, | |||
| 208 | break; | 208 | break; |
| 209 | } | 209 | } |
| 210 | case BTF_KIND_FWD: { | 210 | case BTF_KIND_FWD: { |
| 211 | const char *fwd_kind = BTF_INFO_KIND(t->info) ? "union" | 211 | const char *fwd_kind = BTF_INFO_KFLAG(t->info) ? "union" |
| 212 | : "struct"; | 212 | : "struct"; |
| 213 | 213 | ||
| 214 | if (json_output) | 214 | if (json_output) |
| 215 | jsonw_string_field(w, "fwd_kind", fwd_kind); | 215 | jsonw_string_field(w, "fwd_kind", fwd_kind); |
