rtlwifi: Optimize RT_TRACE macro use of KBUILD_MODNAME for size
authorJoe Perches <joe@perches.com>
Thu, 5 Jan 2012 03:40:45 +0000 (19:40 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:07:41 +0000 (14:07 -0500)
Moving the KBUILD_MODNAME to the format reduces the
overall object size a small amount.

$ size drivers/net/wireless/rtlwifi/built-in.o*
   text    data     bss     dec     hex filename
 586904   55333  127216  769453   bbdad drivers/net/wireless/rtlwifi/built-in.o.new
 588901   55333  127216  771450   bc57a 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/debug.h

index 74b6780880f272f4c074c4828c3bbbab99c7ca83..b024c23b6523ee8c7caf4cc4a9491cc91029d9fc 100644 (file)
@@ -168,9 +168,9 @@ do {                                                                        \
 do {                                                                   \
        if (unlikely(((comp) & rtlpriv->dbg.global_debugcomponents) &&  \
                     ((level) <= rtlpriv->dbg.global_debuglevel))) {    \
-               printk(KERN_DEBUG "%s:%s():<%lx-%x> " fmt,              \
-                      KBUILD_MODNAME, __func__,                        \
-                      in_interrupt(), in_atomic(), ##__VA_ARGS__);     \
+               printk(KERN_DEBUG KBUILD_MODNAME ":%s():<%lx-%x> " fmt, \
+                      __func__, in_interrupt(), in_atomic(),           \
+                      ##__VA_ARGS__);                                  \
        }                                                               \
 } while (0)