Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB2NET: SR9800: use %zu for size_t

Use %zu for size_t in order to avoid the following build
warning in printks.

drivers/net/usb/sr9800.c: In function 'sr9800_bind'
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: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jingoo Han and committed by
David S. Miller
6726d971 219e288e

+1 -1
+1 -1
drivers/net/usb/sr9800.c
··· 823 823 dev->rx_urb_size = 824 824 SR9800_BULKIN_SIZE[SR9800_MAX_BULKIN_2K].size; 825 825 } 826 - netdev_dbg(dev->net, "%s : setting rx_urb_size with : %ld\n", __func__, 826 + netdev_dbg(dev->net, "%s : setting rx_urb_size with : %zu\n", __func__, 827 827 dev->rx_urb_size); 828 828 return 0; 829 829