Skip to content

Commit

Permalink
usbnet: printk format warning
Browse files Browse the repository at this point in the history
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 <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Randy Dunlap authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent 933a27d commit 25d94e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/net/usbnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ static int usbnet_open (struct net_device *net)

devinfo (dev, "open: enable queueing "
"(rx %d, tx %d) mtu %d %s framing",
RX_QLEN (dev), TX_QLEN (dev), dev->net->mtu,
(int)RX_QLEN (dev), (int)TX_QLEN (dev), dev->net->mtu,
framing);
}

Expand Down

0 comments on commit 25d94e6

Please sign in to comment.