libbpf: Fix compilation warning due to mismatched printf format
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 9 Feb 2022 06:39:09 +0000 (22:39 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 9 Feb 2022 13:33:32 +0000 (14:33 +0100)
commitdc37dc617fabfb1c3a16d49f5d8cc20e9e3608ca
treeb8fbaa3d9c5b09410d7e71d3ca35d848051096c3
parent3caa7d2e2e9b69bf294b55c4a5a0b6673fdf5b00
libbpf: Fix compilation warning due to mismatched printf format

On ppc64le architecture __s64 is long int and requires %ld. Cast to
ssize_t and use %zd to avoid architecture-specific specifiers.

Fixes: 4172843ed4a3 ("libbpf: Fix signedness bug in btf_dump_array_data()")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220209063909.1268319-1-andrii@kernel.org
tools/lib/bpf/btf_dump.c