diff options
author | Joe Perches <joe@perches.com> | 2012-01-04 22:40:40 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-24 14:06:06 -0500 |
commit | af08687b4e6d44dcdb04b519e718eb58ecb99050 (patch) | |
tree | b7f72ff8e447b049bfdc47ec5c234d3ac5936c74 /drivers/net/wireless/rtlwifi/debug.h | |
parent | 884dd24499df823f5c167223c7ae93bd764e2e4f (diff) |
rtlwifi: Standardize RT_PRINT_DATA macro and uses
Use a single printk(KERN_DEBUG to emit the header line
to avoid any possible output interleaving.
Remove unnecessary parentheses from the calling uses.
Standardize header arg without trailing \n or colon.
Fix a few pairwiase/pairwise typos.
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>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/debug.h')
-rw-r--r-- | drivers/net/wireless/rtlwifi/debug.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/rtlwifi/debug.h b/drivers/net/wireless/rtlwifi/debug.h index 802c491b3d86..588986a1e213 100644 --- a/drivers/net/wireless/rtlwifi/debug.h +++ b/drivers/net/wireless/rtlwifi/debug.h | |||
@@ -189,10 +189,9 @@ do { \ | |||
189 | do { \ | 189 | do { \ |
190 | if (unlikely(((_comp) & rtlpriv->dbg.global_debugcomponents) && \ | 190 | if (unlikely(((_comp) & rtlpriv->dbg.global_debugcomponents) && \ |
191 | (_level <= rtlpriv->dbg.global_debuglevel))) { \ | 191 | (_level <= rtlpriv->dbg.global_debuglevel))) { \ |
192 | printk(KERN_DEBUG "%s: ", KBUILD_MODNAME); \ | 192 | printk(KERN_DEBUG "%s: In process \"%s\" (pid %i): %s\n", \ |
193 | pr_cont("In process \"%s\" (pid %i):", \ | 193 | KBUILD_MODNAME, current->comm, current->pid, \ |
194 | current->comm, current->pid); \ | 194 | _titlestring); \ |
195 | printk(_titlestring); \ | ||
196 | print_hex_dump_bytes("", DUMP_PREFIX_NONE, \ | 195 | print_hex_dump_bytes("", DUMP_PREFIX_NONE, \ |
197 | _hexdata, _hexdatalen); \ | 196 | _hexdata, _hexdatalen); \ |
198 | } \ | 197 | } \ |