summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2012-01-20 04:17:25 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-24 14:46:56 -0800
commit820c629a595ad8d8f2694641e494738b18d29e7b (patch)
treefe6a1aea5e3f6c9185199826b2203bad9b5c0966 /drivers
parent7e3054a005537f28544ab2870c375458362f7473 (diff)
downloadop-kernel-dev-820c629a595ad8d8f2694641e494738b18d29e7b.zip
op-kernel-dev-820c629a595ad8d8f2694641e494738b18d29e7b.tar.gz
USB: cdc-wdm: avoid printing odd-looking "cdc-wdm-176" names
usb_register_dev() will change our .minor_base to 0 if CONFIG_USB_DYNAMIC_MINORS is set. And it usually is, of course. Use dev_name() to print the proper interface name instead Signed-off-by: Bjørn Mork <bjorn@mork.no> Acked-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/class/cdc-wdm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
index c0197af..c154d4f 100644
--- a/drivers/usb/class/cdc-wdm.c
+++ b/drivers/usb/class/cdc-wdm.c
@@ -723,8 +723,7 @@ next_desc:
if (rv < 0)
goto err2;
else
- dev_info(&intf->dev, "cdc-wdm%d: USB WDM device\n",
- intf->minor - WDM_MINOR_BASE);
+ dev_info(&intf->dev, "%s: USB WDM device\n", dev_name(intf->usb_dev));
out:
return rv;
err2:
OpenPOWER on IntegriCloud