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

2018-05-23 Thread Daniel Borkmann
On 05/23/2018 06:17 PM, 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: " fmt, ##__VA_

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

2018-05-23 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