Skip to content

Commit 6726d97

Browse files
Jingoo Handavem330
authored andcommitted
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>
1 parent 219e288 commit 6726d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/sr9800.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static int sr9800_bind(struct usbnet *dev, struct usb_interface *intf)
823823
dev->rx_urb_size =
824824
SR9800_BULKIN_SIZE[SR9800_MAX_BULKIN_2K].size;
825825
}
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__,
827827
dev->rx_urb_size);
828828
return 0;
829829

0 commit comments

Comments
 (0)