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>
This commit is contained in:
Bjørn Mork 2012-01-20 04:17:25 +01:00 committed by Greg Kroah-Hartman
parent 7e3054a005
commit 820c629a59
1 changed files with 1 additions and 2 deletions

View File

@ -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: