Re: thrashing on format %u vs size_t arg

2021-09-15 Thread Bernd Petrovitsch
On 15/09/2021 18:20, jim.cro...@gmail.com wrote: On Tue, Sep 14, 2021 at 10:47 PM Bernd Petrovitsch wrote: On 15/09/2021 00:38, jim.cro...@gmail.com wrote: I will cast and be done with it Or you use - like everyone else - "%zu" as format specifier. Read `man 3 printf` for more - the Kernel

Re: thrashing on format %u vs size_t arg

2021-09-15 Thread jim . cromie
On Tue, Sep 14, 2021 at 10:47 PM Bernd Petrovitsch wrote: > > On 15/09/2021 00:38, jim.cro...@gmail.com wrote: > > I will cast and be done with it > > Or you use - like everyone else - "%zu" as format > specifier. > > Read `man 3 printf` for more - the Kernel's printk > implements almost all of it

Re: thrashing on format %u vs size_t arg

2021-09-15 Thread Bernd Petrovitsch
On 15/09/2021 00:38, jim.cro...@gmail.com wrote: I will cast and be done with it Or you use - like everyone else - "%zu" as format specifier. Read `man 3 printf` for more - the Kernel's printk implements almost all of it. [ Fullquote deleted - please don't do that ] MfG, Bernd -- Ber

Re: thrashing on format %u vs size_t arg

2021-09-14 Thread jim . cromie
I will cast and be done with it On Tue, Sep 14, 2021, 1:39 PM Valdis Klētnieks wrote: > On Tue, 14 Sep 2021 09:32:33 -0600, jim.cro...@gmail.com said: > > > Im getting what appears to be conflicting warnings > > about %u vs unsigned int (sometimes unsigned long int) > > depending upon platform ?

Re: thrashing on format %u vs size_t arg

2021-09-14 Thread Valdis Klētnieks
On Tue, 14 Sep 2021 09:32:33 -0600, jim.cro...@gmail.com said: > Im getting what appears to be conflicting warnings > about %u vs unsigned int (sometimes unsigned long int) > depending upon platform ?? Hint: What size is a size_t on a 32 bit platform, and on a 64 bit platform? pgpOwN2bmspBz.pg

thrashing on format %u vs size_t arg

2021-09-14 Thread jim . cromie
wrt: + v2pr_info("read %u bytes from userspace <\n%s>\n", len, tmpbuf); Im getting what appears to be conflicting warnings about %u vs unsigned int (sometimes unsigned long int) depending upon platform ?? Ive now tried both %lu and %u What have I missed ? [jimc:dd-drm-next 3/16] li