From: Bjørn Mork Date: Fri, 20 Jan 2012 03:17:25 +0000 (+0100) Subject: USB: cdc-wdm: avoid printing odd-looking "cdc-wdm-176" names X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=820c629a595ad8d8f2694641e494738b18d29e7b;p=deliverable%2Flinux.git 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 Acked-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index c0197af22fd8..c154d4f1d674 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: