mirror of https://gitee.com/openkylin/linux.git
rtlwifi: rtl8192ee: Prevent log spamming for switch statements
The driver logs a message when the default branch of switch statements are taken. Such information is useful when debugging, but these log items should not be seen for standard usage. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
78afe83c3b
commit
47481d977c
|
@ -362,7 +362,7 @@ void rtl92ee_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG,
|
||||||
"switch case not process %x\n", variable);
|
"switch case not process %x\n", variable);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -591,7 +591,7 @@ void rtl92ee_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
|
||||||
acm_ctrl &= (~ACMHW_BEQEN);
|
acm_ctrl &= (~ACMHW_BEQEN);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG,
|
||||||
"switch case not process\n");
|
"switch case not process\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -710,7 +710,7 @@ void rtl92ee_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG,
|
||||||
"switch case not process %x\n", variable);
|
"switch case not process %x\n", variable);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2424,7 +2424,7 @@ void rtl92ee_set_key(struct ieee80211_hw *hw, u32 key_index,
|
||||||
enc_algo = CAM_AES;
|
enc_algo = CAM_AES;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG,
|
||||||
"switch case not process\n");
|
"switch case not process\n");
|
||||||
enc_algo = CAM_TKIP;
|
enc_algo = CAM_TKIP;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue