Joe Perches 75b9130e8a usb: storage: Add usb_stor_dbg, reduce object size
Reduce the size of the objects by consolidating
the duplicated USB_STORAGE into a single function.

Add function usb_stor_dbg to emit debugging messages.
Always validate the format and arguments.
Reduce the number of uses of CONFIG_USB_STORAGE_DEBUG.

Reduces size of objects ~7KB when CONFIG_USB_STORAGE_DEBUG
is set.

$ size drivers/usb/storage/built-in.o*
   text	   data	    bss	    dec	    hex	filename
 140133	  55296	  70312	 265741	  40e0d	drivers/usb/storage/built-in.o.new
 147494	  55248	  70296	 273038	  42a8e	drivers/usb/storage/built-in.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-04-17 10:01:22 -07:00
..
2012-09-05 17:21:36 -07:00
2012-09-05 17:21:36 -07:00
2012-09-05 17:21:36 -07:00
2012-09-05 17:21:36 -07:00
2012-09-05 17:21:36 -07:00
2012-09-05 17:21:36 -07:00
2012-09-05 17:21:36 -07:00
2012-09-05 17:21:36 -07:00
2012-09-05 17:21:36 -07:00
2012-09-05 17:21:36 -07:00
2012-09-05 17:21:36 -07:00
2013-01-25 09:56:54 -08:00
2013-02-08 12:03:11 -08:00