]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix pr_warn type warnings on 32bit
authorMichal Suchanek <msuchanek@suse.de>
Fri, 4 Jun 2021 11:24:48 +0000 (13:24 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 8 Jun 2021 20:02:10 +0000 (22:02 +0200)
commitc26ed2730cf28d94d7ee0ed98295b8f4ea5dc557
tree5ea81c272d5e1dfed8d5708785be171bc4975ed5
parentca2c2bb365a216c74c0ffb8b56975ee68866cbb3
libbpf: Fix pr_warn type warnings on 32bit

The printed value is ptrdiff_t and is formatted wiht %ld. This works on
64bit but produces a warning on 32bit. Fix the format specifier to %td.

Fixes: da76868b0892 ("libbpf: Generate loader program out of BPF ELF file.")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210604112448.32297-1-msuchanek@suse.de
tools/lib/bpf/libbpf.c