diff options
author | Joe Perches <joe@perches.com> | 2011-07-20 11:51:35 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-21 14:52:05 -0400 |
commit | 292b11926fec139c0ff103bc229bc6c079d0862f (patch) | |
tree | b960f9363ee4eaa0846039e2e4f17e796a055651 /drivers/net/wireless/rtlwifi/rtl8192se/hw.c | |
parent | 6054069a03f77ffa686e2dfd5f07cff8ee40b72d (diff) |
rtlwifi: Convert printks to pr_<level>
Use the current logging styles.
Add pr_fmt where appropriate.
Remove now unnecessary prefixes from printks.
Convert hard coded prefix to __func__.
Add a missing "\n" to a format.
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/rtl8192se/hw.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192se/hw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/hw.c b/drivers/net/wireless/rtlwifi/rtl8192se/hw.c index fe2b0b9d9145..d59f66cb7768 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192se/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192se/hw.c | |||
@@ -27,6 +27,8 @@ | |||
27 | * | 27 | * |
28 | *****************************************************************************/ | 28 | *****************************************************************************/ |
29 | 29 | ||
30 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
31 | |||
30 | #include "../wifi.h" | 32 | #include "../wifi.h" |
31 | #include "../efuse.h" | 33 | #include "../efuse.h" |
32 | #include "../base.h" | 34 | #include "../base.h" |
@@ -465,8 +467,7 @@ static u8 _rtl92ce_halset_sysclk(struct ieee80211_hw *hw, u8 data) | |||
465 | if ((tmpvalue & BIT(6))) | 467 | if ((tmpvalue & BIT(6))) |
466 | break; | 468 | break; |
467 | 469 | ||
468 | printk(KERN_ERR "wait for BIT(6) return value %x\n", | 470 | pr_err("wait for BIT(6) return value %x\n", tmpvalue); |
469 | tmpvalue); | ||
470 | if (waitcount == 0) | 471 | if (waitcount == 0) |
471 | break; | 472 | break; |
472 | 473 | ||
@@ -1255,8 +1256,7 @@ static u8 _rtl92s_set_sysclk(struct ieee80211_hw *hw, u8 data) | |||
1255 | if ((tmp & BIT(6))) | 1256 | if ((tmp & BIT(6))) |
1256 | break; | 1257 | break; |
1257 | 1258 | ||
1258 | printk(KERN_ERR "wait for BIT(6) return value %x\n", | 1259 | pr_err("wait for BIT(6) return value %x\n", tmp); |
1259 | tmp); | ||
1260 | 1260 | ||
1261 | if (waitcnt == 0) | 1261 | if (waitcnt == 0) |
1262 | break; | 1262 | break; |
@@ -1315,7 +1315,7 @@ static void _rtl92s_phy_set_rfhalt(struct ieee80211_hw *hw) | |||
1315 | if (u1btmp & BIT(7)) { | 1315 | if (u1btmp & BIT(7)) { |
1316 | u1btmp &= ~(BIT(6) | BIT(7)); | 1316 | u1btmp &= ~(BIT(6) | BIT(7)); |
1317 | if (!_rtl92s_set_sysclk(hw, u1btmp)) { | 1317 | if (!_rtl92s_set_sysclk(hw, u1btmp)) { |
1318 | printk(KERN_ERR "Switch ctrl path fail\n"); | 1318 | pr_err("Switch ctrl path fail\n"); |
1319 | return; | 1319 | return; |
1320 | } | 1320 | } |
1321 | } | 1321 | } |