aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2019-04-16 18:47:17 +0000
committerAlexei Starovoitov <[email protected]>2019-04-17 02:44:19 +0000
commite1d1dc4653ecdea55cb0e96844f88da62c65cd4f (patch)
tree712868efc5cad0a0d7915f03f0bb2a4a78049b20 /tools/bpf/bpftool/prog.c
parentbpf: use BPF_CAST_CALL for casting bpf call (diff)
downloadkernel-e1d1dc4653ecdea55cb0e96844f88da62c65cd4f.tar.gz
kernel-e1d1dc4653ecdea55cb0e96844f88da62c65cd4f.zip
libbpf: fix printf formatter for ptrdiff_t argument
Using %ld for printing out value of ptrdiff_t type is not portable between 32-bit and 64-bit archs. This is causing compilation errors for libbpf on 32-bit platform (discovered as part of an effort to integrate libbpf into systemd ([0])). Proper formatter is %td, which is used in this patch. v2->v1: - add Reported-by - provide more context on how this issue was discovered [0] https://github.com/systemd/systemd/pull/12151 Reported-by: Evgeny Vereshchagin <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Yonghong Song <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Song Liu <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions