summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-12-12 13:15:00 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2022-12-15 00:05:12 +0100
commit872aec4b5f635d94111d48ec3c57fbe078d64e7d (patch)
tree092064744a5e4e5afedb3e3a866a08d4a6290b13 /tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c
parentc9883ee9d110703ccb3dfe2ca13e0b7a01351077 (diff)
libbpf: Fix single-line struct definition output in btf_dump
btf_dump APIs emit unnecessary tabs when emitting struct/union definition that fits on the single line. Before this patch we'd get: struct blah {<tab>}; This patch fixes this and makes sure that we get more natural: struct blah {}; Fixes: 44a726c3f23c ("bpftool: Print newline before '}' for struct with padding only fields") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20221212211505.558851-2-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c')
0 files changed, 0 insertions, 0 deletions