summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723au/include
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-24 16:06:44 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-26 13:15:07 +0100
commit90403aa118fe5e9f0e5bed1acc3fa2406237f9cb (patch)
tree5e83cc9de2a14f75662ba3e8a8804317828ae4a1 /drivers/staging/rtl8723au/include
parent73454eaf2032c64f1d863ac7e91304e4bf903bfb (diff)
downloadlinux-90403aa118fe5e9f0e5bed1acc3fa2406237f9cb.tar.bz2
staging: rtl8723au: Update RT_TRACE macro and uses
Create an rt_trace function using %pV to reduce overall code size. Update the macro uses to remove unnecessary and now harmful parentheses. Miscellanea around these changes: o Coalesce formats o Realign arguments o Remove commented-out RT_TRACE uses o Spelling fixes in formats o Add missing newlines to formats o Remove multiple newlines from formats o Neaten formats where noticed o Use %pM in one instance Reduces code size ~20KB Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723au/include')
-rw-r--r--drivers/staging/rtl8723au/include/rtw_debug.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/staging/rtl8723au/include/rtw_debug.h b/drivers/staging/rtl8723au/include/rtw_debug.h
index b6b01732a725..159183e9cab0 100644
--- a/drivers/staging/rtl8723au/include/rtw_debug.h
+++ b/drivers/staging/rtl8723au/include/rtw_debug.h
@@ -163,14 +163,13 @@
extern u32 GlobalDebugLevel23A;
+__printf(3, 4)
+void rt_trace(int comp, int level, const char *fmt, ...);
-#define RT_TRACE(_Comp, _Level, Fmt) \
+#define RT_TRACE(_Comp, _Level, Fmt, ...) \
do { \
- if (_Level <= GlobalDebugLevel23A) { \
- pr_info("%s [0x%08x,%d]", DRIVER_PREFIX, \
- (unsigned int)_Comp, _Level); \
- pr_info Fmt; \
- } \
+ if (_Level <= GlobalDebugLevel23A) \
+ rt_trace(_Comp, _Level, Fmt, ##__VA_ARGS__); \
} while (0)
#define RT_PRINT_DATA(_Comp, _Level, _TitleString, _HexData, \