* [PATCH] net: usb: sr9800: Use '%zu' to print size_t format
@ 2014-02-14 13:25 Fabio Estevam
2014-02-14 18:59 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2014-02-14 13:25 UTC (permalink / raw)
To: davem; +Cc: liujunliang_ljl, netdev, Fabio Estevam
Fix the following build warning on ARM:
drivers/net/usb/sr9800.c:826:2: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' [-Wformat]
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/net/usb/sr9800.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/usb/sr9800.c b/drivers/net/usb/sr9800.c
index 4175eb9..8017108 100644
--- a/drivers/net/usb/sr9800.c
+++ b/drivers/net/usb/sr9800.c
@@ -823,7 +823,7 @@ static int sr9800_bind(struct usbnet *dev, struct usb_interface *intf)
dev->rx_urb_size =
SR9800_BULKIN_SIZE[SR9800_MAX_BULKIN_2K].size;
}
- netdev_dbg(dev->net, "%s : setting rx_urb_size with : %ld\n", __func__,
+ netdev_dbg(dev->net, "%s : setting rx_urb_size with : %zu\n", __func__,
dev->rx_urb_size);
return 0;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: usb: sr9800: Use '%zu' to print size_t format
2014-02-14 13:25 [PATCH] net: usb: sr9800: Use '%zu' to print size_t format Fabio Estevam
@ 2014-02-14 18:59 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-02-14 18:59 UTC (permalink / raw)
To: fabio.estevam; +Cc: liujunliang_ljl, netdev
From: Fabio Estevam <fabio.estevam@freescale.com>
Date: Fri, 14 Feb 2014 11:25:35 -0200
> Fix the following build warning on ARM:
>
> drivers/net/usb/sr9800.c:826:2: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' [-Wformat]
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Already fixed in the 'net' tree, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-14 18:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-14 13:25 [PATCH] net: usb: sr9800: Use '%zu' to print size_t format Fabio Estevam
2014-02-14 18:59 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).