Re: [PATCH -net] zd1211rw: zd_usb: Use "%zu" to format size_t
From: Kalle Valo
Date: Sat Sep 21 2019 - 01:58:51 EST
Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:
> On 32-bit:
>
> drivers/net/wireless/zydas/zd1211rw/zd_usb.c: In function âcheck_read_regsâ:
> drivers/net/wireless/zydas/zd1211rw/zd_def.h:18:25: warning: format â%ldâ expects argument of type âlong intâ, but argument 6 has type âsize_tâ {aka âunsigned intâ} [-Wformat=]
> dev_printk(level, dev, "%s() " fmt, __func__, ##args)
> ^~~~~~~
> drivers/net/wireless/zydas/zd1211rw/zd_def.h:22:4: note: in expansion of macro âdev_printk_fâ
> dev_printk_f(KERN_DEBUG, dev, fmt, ## args)
> ^~~~~~~~~~~~
> drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1635:3: note: in expansion of macro âdev_dbg_fâ
> dev_dbg_f(zd_usb_dev(usb),
> ^~~~~~~~~
> drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1636:51: note: format string is defined here
> "error: actual length %d less than expected %ld\n",
> ~~^
> %d
>
> Fixes: 84b0b66352470e64 ("zd1211rw: zd_usb: Use struct_size() helper")
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Patch applied to wireless-drivers.git, thanks.
6355592e6b55 zd1211rw: zd_usb: Use "%zu" to format size_t
--
https://patchwork.kernel.org/patch/11151959/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches