Skip to content

Commit 25d94e6

Browse files
rddunlapgregkh
authored andcommitted
usbnet: printk format warning
Fix printk format warning(s): drivers/usb/net/usbnet.c:654: warning: int format, different type arg (arg 3) The fact that rx_urb_size happens to be a size_t has propagated all the way back to this printk. It's fragile to be using %z in this case - let's just typecast the args instead. Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 933a27d commit 25d94e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/net/usbnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ static int usbnet_open (struct net_device *net)
653653

654654
devinfo (dev, "open: enable queueing "
655655
"(rx %d, tx %d) mtu %d %s framing",
656-
RX_QLEN (dev), TX_QLEN (dev), dev->net->mtu,
656+
(int)RX_QLEN (dev), (int)TX_QLEN (dev), dev->net->mtu,
657657
framing);
658658
}
659659

0 commit comments

Comments
 (0)