Re: [PATCH bpf-next] libbpf: fix printf formatter for ptrdiff_t argument

2019-04-16 Thread Alexei Starovoitov
On Tue, Apr 16, 2019 at 11:47 AM wrote: > > From: Andrii Nakryiko > > 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 int

Re: [PATCH bpf-next] libbpf: fix printf formatter for ptrdiff_t argument

2019-04-16 Thread Song Liu
On Tue, Apr 16, 2019 at 11:47 AM wrote: > > From: Andrii Nakryiko > > 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 int