Re: [PATCH v2 bpf-next] libbpf: fix compilation warnings for 64-bit printf args

2020-08-26 Thread Alexei Starovoitov
On Wed, Aug 26, 2020 at 9:13 PM Andrii Nakryiko wrote: > > Fix compilation warnings due to __u64 defined differently as `unsigned long` > or `unsigned long long` on different architectures (e.g., ppc64le differs from > x86-64). Also cast one argument to size_t to fix printf warning of similar > na

[PATCH v2 bpf-next] libbpf: fix compilation warnings for 64-bit printf args

2020-08-26 Thread Andrii Nakryiko
Fix compilation warnings due to __u64 defined differently as `unsigned long` or `unsigned long long` on different architectures (e.g., ppc64le differs from x86-64). Also cast one argument to size_t to fix printf warning of similar nature. Reported-by: Naresh Kamboju Fixes: eacaaed784e2 ("libbpf: