From: akpm@osdl.org Date: Tue, 19 Apr 2005 00:39:27 +0000 (-0700) Subject: [PATCH] USB: usbnet printk warning fix X-Git-Tag: v2.6.12-rc3~26^2~13 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403a98176a5866217eb12ca6bb283e635ced2dd0;p=linux-2.6 [PATCH] USB: usbnet printk warning fix On ppc64: drivers/usb/net/usbnet.c: In function `skb_return': drivers/usb/net/usbnet.c:429: warning: int format, different type arg (arg 3) drivers/usb/net/usbnet.c:429: warning: int format, different type arg (arg 3) Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman diff -puN drivers/usb/net/usbnet.c~usbnet-printk-warning-fix drivers/usb/net/usbnet.c --- diff --git a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c index 3e341b1ffd..0ebb79c293 100644 --- a/drivers/usb/net/usbnet.c +++ b/drivers/usb/net/usbnet.c @@ -426,7 +426,7 @@ static void skb_return (struct usbnet *dev, struct sk_buff *skb) dev->stats.rx_bytes += skb->len; if (netif_msg_rx_status (dev)) - devdbg (dev, "< rx, len %d, type 0x%x", + devdbg (dev, "< rx, len %zd, type 0x%x", skb->len + sizeof (struct ethhdr), skb->protocol); memset (skb->cb, 0, sizeof (struct skb_data)); status = netif_rx (skb);