]> git.karo-electronics.de Git - linux-beck.git/commit
rtlwifi: add CONFIG_RTLWIFI_DEBUG to remove all of the debug logging code
authorJoe Perches <joe@perches.com>
Thu, 5 Jan 2012 16:29:07 +0000 (08:29 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:07:41 +0000 (14:07 -0500)
commit481b9606ec7276401c7f746fe37873855c49d1b8
tree2f7fe7aad6bb067ad9a9b523350612f7e1bd12b5
parentf56e7eb4dd3124d53a5200ff093bc6bcbae671e9
rtlwifi: add CONFIG_RTLWIFI_DEBUG to remove all of the debug logging code

It does seem odd though to have a DBG_EMERG and not always
emit it.

What might also be useful for any embedded use is to add
CONFIG_RTLWIFI_DEBUG to conditionally remove all of the
debug logging code to reduce the largish object size.

This reduces the object size by about 1/3 (250KB)
when CONFIG_RTLWIFI_DEBUG is not set.

$ size drivers/net/wireless/rtlwifi/built-in.o*
   text    data     bss     dec     hex filename
 368722   55333   94224  518279   7e887 drivers/net/wireless/rtlwifi/built-in.o.new
 586904   55333  127216  769453   bbdad drivers/net/wireless/rtlwifi/built-in.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/Kconfig
drivers/net/wireless/rtlwifi/debug.h