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@xxxxxxx> --- I seem to have forgot this one in the last series. It's only cosmetical but it is so much nicer looking: Jan 20 04:09:06 nemi kernel: [ 695.774217] cdc_wdm 2-4:1.5: cdc-wdm0: USB WDM device Jan 20 04:09:06 nemi kernel: [ 695.774352] cdc_wdm 2-4:1.6: cdc-wdm1: USB WDM device Jan 20 04:09:06 nemi kernel: [ 695.774490] cdc_wdm 2-1:1.3: cdc-wdm2: USB WDM device vs the old: Jan 20 03:57:58 nemi kernel: [ 18.559957] cdc_wdm 2-4:1.5: cdc-wdm-176: USB WDM device Jan 20 03:57:58 nemi kernel: [ 18.560189] cdc_wdm 2-4:1.6: cdc-wdm-175: USB WDM device Jan 20 03:57:58 nemi kernel: [ 25.519922] cdc_wdm 2-1:1.3: cdc-wdm-174: USB WDM device drivers/usb/class/cdc-wdm.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index 4ca3642..bdeb3e2 100644 --- a/drivers/usb/class/cdc-wdm.c +++ b/drivers/usb/class/cdc-wdm.c @@ -771,8 +771,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: -- 1.7.8.3 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html