rtlwifi: Remove RT_TRACE messages that use DBG_EMERG
These messages are always logged and represent error conditions, thus we can use pr_err(). Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -207,8 +207,7 @@ static void _rtl_init_hw_ht_capab(struct ieee80211_hw *hw,
|
||||
*highest supported RX rate
|
||||
*/
|
||||
if (rtlpriv->dm.supp_phymode_switch) {
|
||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG,
|
||||
"Support phy mode switch\n");
|
||||
pr_info("Support phy mode switch\n");
|
||||
|
||||
ht_cap->mcs.rx_mask[0] = 0xFF;
|
||||
ht_cap->mcs.rx_mask[1] = 0xFF;
|
||||
@@ -389,8 +388,8 @@ static void _rtl_init_mac80211(struct ieee80211_hw *hw)
|
||||
/* <4> set mac->sband to wiphy->sband */
|
||||
hw->wiphy->bands[NL80211_BAND_5GHZ] = sband;
|
||||
} else {
|
||||
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "Err BAND %d\n",
|
||||
rtlhal->current_bandtype);
|
||||
pr_err("Err BAND %d\n",
|
||||
rtlhal->current_bandtype);
|
||||
}
|
||||
}
|
||||
/* <5> set hw caps */
|
||||
@@ -544,7 +543,7 @@ int rtl_init_core(struct ieee80211_hw *hw)
|
||||
* mac80211 hw in _rtl_init_mac80211.
|
||||
*/
|
||||
if (rtl_regd_init(hw, rtl_reg_notifier)) {
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "REGD init failed\n");
|
||||
pr_err("REGD init failed\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -1694,8 +1693,7 @@ void rtl_watchdog_wq_callback(void *data)
|
||||
* we should reconnect this AP
|
||||
*/
|
||||
if (rtlpriv->link_info.roam_times >= 5) {
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
||||
"AP off, try to reconnect now\n");
|
||||
pr_err("AP off, try to reconnect now\n");
|
||||
rtlpriv->link_info.roam_times = 0;
|
||||
ieee80211_connection_loss(
|
||||
rtlpriv->mac80211.vif);
|
||||
@@ -1886,8 +1884,7 @@ void rtl_phy_scan_operation_backup(struct ieee80211_hw *hw, u8 operation)
|
||||
(u8 *)&iotype);
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
||||
"Unknown Scan Backup operation.\n");
|
||||
pr_err("Unknown Scan Backup operation.\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user