From: David Brownell Date: Wed, 15 Jun 2005 15:04:30 +0000 (-0700) Subject: [PATCH] USB: usbnet debug message fix X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e3bc8b4e00d0ce219165d469409f2770698574f6;p=openwrt%2Fstaging%2Fblogic.git [PATCH] USB: usbnet debug message fix One debug message won't print the right value; OSDL bugid 4545. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c index 4cbb408af727..8a945f4f3693 100644 --- a/drivers/usb/net/usbnet.c +++ b/drivers/usb/net/usbnet.c @@ -1429,7 +1429,7 @@ static int generic_cdc_bind (struct usbnet *dev, struct usb_interface *intf) info->ether = (void *) buf; if (info->ether->bLength != sizeof *info->ether) { dev_dbg (&intf->dev, "CDC ether len %u\n", - info->u->bLength); + info->ether->bLength); goto bad_desc; } dev->net->mtu = le16_to_cpup (