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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:30 +0000 (14:23 +0200)
commit2f0949db6e2ce224a876637ad33746933655b477
tree33636acb1341f7d8e054b9ae70d4ced67fb7f25b
parent0255e93dce7acce5875fc3d0d34e4243de1e3a9b
libbpf: Fix compilation warning due to mismatched printf format

[ Upstream commit dc37dc617fabfb1c3a16d49f5d8cc20e9e3608ca ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/lib/bpf/btf_dump.c