]> git.baikalelectronics.ru Git - kernel.git/commit
USB Storage: Make driver less chatty when it finds a new device
authorMatthew Wilcox <willy@linux.intel.com>
Thu, 24 Sep 2009 22:19:49 +0000 (16:19 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:13 +0000 (11:55 -0800)
commita988342f530f7491f90deac207fa04d1e4dce0fb
tree66d9d80f97dba26e94b6ac20ef8b2910eb58f03d
parent2f96403178bdc86e46b943d31f01798a03279085
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