Re: [PATCH 1/1] tools/lib/libbpf.c: fix string format to allow build on arm32

2018-05-23 Thread Sirio Balmelli
On Wed, May 23, 2018 at 08:49:47AM -0700, Martin KaFai Lau wrote: > On Wed, May 23, 2018 at 12:41:14PM +0200, Daniel Borkmann wrote: > > [ +Martin ] > > > > On 05/21/2018 08:59 AM, Sirio Balmelli wrote: > > > On arm32, 'cd tools/testing/selftests/bpf && make' fails with: > > > > > > libbpf.c:80:1

Re: [PATCH 1/1] tools/lib/libbpf.c: fix string format to allow build on arm32

2018-05-23 Thread Martin KaFai Lau
On Wed, May 23, 2018 at 12:41:14PM +0200, Daniel Borkmann wrote: > [ +Martin ] > > On 05/21/2018 08:59 AM, Sirio Balmelli wrote: > > On arm32, 'cd tools/testing/selftests/bpf && make' fails with: > > > > libbpf.c:80:10: error: format ‘%ld’ expects argument of type ‘long int’, > > but argument 4

Re: [PATCH 1/1] tools/lib/libbpf.c: fix string format to allow build on arm32

2018-05-23 Thread Daniel Borkmann
[ +Martin ] On 05/21/2018 08:59 AM, Sirio Balmelli wrote: > On arm32, 'cd tools/testing/selftests/bpf && make' fails with: > > libbpf.c:80:10: error: format ‘%ld’ expects argument of type ‘long int’, but > argument 4 has type ‘int64_t {aka long long int}’ [-Werror=format=] >(func)("libbpf: "

[PATCH 1/1] tools/lib/libbpf.c: fix string format to allow build on arm32

2018-05-21 Thread Sirio Balmelli
On arm32, 'cd tools/testing/selftests/bpf && make' fails with: libbpf.c:80:10: error: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int64_t {aka long long int}’ [-Werror=format=] (func)("libbpf: " fmt, ##__VA_ARGS__); \ ^ libbpf.c:83:30: note: in expansio