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

2020-08-26 Thread Andrii Nakryiko
On Wed, Aug 26, 2020 at 9:08 AM Alexei Starovoitov wrote: > > On Tue, Aug 25, 2020 at 08:09:21PM -0700, Andrii Nakryiko wrote: > > Add __pu64 and __ps64 (sort of like "printf u64 and s64") for > > libbpf-internal > > use only in printf-like situations to avoid compilation warnings due to > > %lld

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

2020-08-26 Thread Alexei Starovoitov
On Tue, Aug 25, 2020 at 08:09:21PM -0700, Andrii Nakryiko wrote: > Add __pu64 and __ps64 (sort of like "printf u64 and s64") for libbpf-internal > use only in printf-like situations to avoid compilation warnings due to > %lld/%llu mismatch with a __u64/__s64 due to some architecture defining the >

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

2020-08-25 Thread Andrii Nakryiko
Add __pu64 and __ps64 (sort of like "printf u64 and s64") for libbpf-internal use only in printf-like situations to avoid compilation warnings due to %lld/%llu mismatch with a __u64/__s64 due to some architecture defining the latter as either `long` or `long long`. Use that on all %lld/%llu cases i