USB Storage: Make driver less chatty when it finds a new device
commit9eb66f71318df6ab73bad2fb924a36777cf0220e
authorMatthew Wilcox <willy@linux.intel.com>
Thu, 24 Sep 2009 22:19:49 +0000 (24 16:19 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:13 +0000 (11 11:55 -0800)
tree66d9d80f97dba26e94b6ac20ef8b2910eb58f03d
parent00fa43ef09c6bb357d58c14a99181cce09c315c6
USB Storage: Make driver less chatty when it finds a new device

Use dev_dbg() instead of an unconditional printk(KERN_DEBUG).  This has
two benefits; one is that it identifies the USB device which the messages
related to, and the other is that the messages won't be produced unless
debug is turned on.

Enable the debug messages when CONFIG_USB_STORAGE_DEBUG is set.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/usb.c