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>
This commit is contained in:

committed by
John W. Linville

parent
6054069a03
commit
292b11926f
@@ -27,6 +27,8 @@
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include "../wifi.h"
|
||||
#include "../efuse.h"
|
||||
#include "../base.h"
|
||||
@@ -465,8 +467,7 @@ static u8 _rtl92ce_halset_sysclk(struct ieee80211_hw *hw, u8 data)
|
||||
if ((tmpvalue & BIT(6)))
|
||||
break;
|
||||
|
||||
printk(KERN_ERR "wait for BIT(6) return value %x\n",
|
||||
tmpvalue);
|
||||
pr_err("wait for BIT(6) return value %x\n", tmpvalue);
|
||||
if (waitcount == 0)
|
||||
break;
|
||||
|
||||
@@ -1255,8 +1256,7 @@ static u8 _rtl92s_set_sysclk(struct ieee80211_hw *hw, u8 data)
|
||||
if ((tmp & BIT(6)))
|
||||
break;
|
||||
|
||||
printk(KERN_ERR "wait for BIT(6) return value %x\n",
|
||||
tmp);
|
||||
pr_err("wait for BIT(6) return value %x\n", tmp);
|
||||
|
||||
if (waitcnt == 0)
|
||||
break;
|
||||
@@ -1315,7 +1315,7 @@ static void _rtl92s_phy_set_rfhalt(struct ieee80211_hw *hw)
|
||||
if (u1btmp & BIT(7)) {
|
||||
u1btmp &= ~(BIT(6) | BIT(7));
|
||||
if (!_rtl92s_set_sysclk(hw, u1btmp)) {
|
||||
printk(KERN_ERR "Switch ctrl path fail\n");
|
||||
pr_err("Switch ctrl path fail\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user