]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] USB: usbnet debug message fix
authorDavid Brownell <david-b@pacbell.net>
Wed, 15 Jun 2005 15:04:30 +0000 (08:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Jun 2005 21:44:04 +0000 (14:44 -0700)
One debug message won't print the right value; OSDL bugid 4545.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/net/usbnet.c

index 4cbb408af72749b5f2f432c10bac69ebe4e2e1b7..8a945f4f36939d35bc8b5d541b8e9d0b7cb9be06 100644 (file)
@@ -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 (