]> git.openfabrics.org - ~emulex/infiniband.git/commit
usb: storage: Add usb_stor_dbg, reduce object size
authorJoe Perches <joe@perches.com>
Wed, 17 Apr 2013 05:44:07 +0000 (22:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2013 17:01:22 +0000 (10:01 -0700)
commit75b9130e8af64c6878a1aa396a8446f3ce2cfb49
tree64337c23d416ce01c1ac2449143c478ad7379704
parent61ac6ac8d662ac7ac67c864954d39d1b19948354
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>
drivers/usb/storage/debug.c
drivers/usb/storage/debug.h
drivers/usb/storage/isd200.c