Messages in this thread | | | From | David Laight <> | Subject | RE: [PATCH bpf-next 07/11] samples: bpf: fix uin64_t format literals | Date | Tue, 19 Apr 2022 08:07:50 +0000 |
| |
From: Alexander Lobakin > Sent: 16 April 2022 18:55 > To: Song Liu <song@kernel.org> > > From: Song Liu <song@kernel.org> > Date: Fri, 15 Apr 2022 16:52:13 -0700 > > > On Thu, Apr 14, 2022 at 3:46 PM Alexander Lobakin <alobakin@pm.me> wrote: > > > > > > There's a couple places where uin64_t is being passed as an %ld > > > format argument, which is incorrect (should be %lld). Fix them. > > > > This will cause some warning on some 64-bit compiler, no? > > Oh wait, I accidentially mentioned %ld and %lld although in fact I > changed %lu to %llu. So there won't be any compiler warnings. I'll > fix the commit message in v2.
That won't make any difference. The correct way to print uint64_t is using PRIu64.
David
- Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)
| |