[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 12 Dec 2019 13:48:34 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Martin Lau <kafai@...com>
Cc: Andrii Nakryiko <andriin@...com>,
"bpf@...r.kernel.org" <bpf@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Alexei Starovoitov <ast@...com>,
"daniel@...earbox.net" <daniel@...earbox.net>,
"andrii.nakryiko@...il.com" <andrii.nakryiko@...il.com>,
Kernel Team <Kernel-team@...com>
Subject: Re: [PATCH v2 bpf-next] libbpf: fix printf compilation warnings on
ppc64le arch
On Thu, Dec 12, 2019 at 10:31 AM Martin Lau <kafai@...com> wrote:
>
> On Thu, Dec 12, 2019 at 09:19:18AM -0800, Andrii Nakryiko wrote:
> > On ppc64le __u64 and __s64 are defined as long int and unsigned long int,
> > respectively. This causes compiler to emit warning when %lld/%llu are used to
> > printf 64-bit numbers. Fix this by casting to size_t/ssize_t with %zu and %zd
> > format specifiers, respectively.
> Acked-by: Martin KaFai Lau <kafai@...com>
Applied. Thanks
Powered by blists - more mailing lists