Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cdc-wdm: cleanup debug messages

Dynamic debugging will already add the function (and the line number)
to a debug message if one requests that. It makes no sense to add
them unconditionally in a driver.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Oliver Neukum and committed by
Greg Kroah-Hartman
13a88bf5 ff7bbff3

+3 -4
+3 -4
drivers/usb/class/cdc-wdm.c
··· 314 314 && !test_bit(WDM_DISCONNECTING, &desc->flags) 315 315 && !test_bit(WDM_SUSPENDING, &desc->flags)) { 316 316 rv = usb_submit_urb(desc->response, GFP_ATOMIC); 317 - dev_dbg(&desc->intf->dev, "%s: usb_submit_urb %d", 318 - __func__, rv); 317 + dev_dbg(&desc->intf->dev, "submit response URB %d", rv); 319 318 } 320 319 spin_unlock(&desc->iuspin); 321 320 if (rv < 0) { ··· 573 574 } 574 575 575 576 if (!desc->reslength) { /* zero length read */ 576 - dev_dbg(&desc->intf->dev, "%s: zero length - clearing WDM_READ\n", __func__); 577 + dev_dbg(&desc->intf->dev, "zero length - clearing WDM_READ"); 577 578 clear_bit(WDM_READ, &desc->flags); 578 579 rv = service_outstanding_interrupt(desc); 579 580 spin_unlock_irq(&desc->iuspin); ··· 1080 1081 if (!desc->count) 1081 1082 cleanup(desc); 1082 1083 else 1083 - dev_dbg(&intf->dev, "%s: %d open files - postponing cleanup\n", __func__, desc->count); 1084 + dev_dbg(&intf->dev, "%d open files - postponing cleanup\n", desc->count); 1084 1085 mutex_unlock(&wdm_mutex); 1085 1086 } 1086 1087