rtlwifi: Add switch variable to 'switch case not processed' messages
Help along debugging by showing what switch/case variable is not being processed in these messages. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -124,7 +124,7 @@ static void _rtl8723e_fill_h2c_command(struct ieee80211_hw *hw, u8 element_id,
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n", boxnum);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ static void _rtl8723e_fill_h2c_command(struct ieee80211_hw *hw, u8 element_id,
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n", cmd_len);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@@ -143,7 +143,7 @@ void rtl8723e_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
|
||||
}
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n", variable);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -366,7 +366,8 @@ void rtl8723e_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n",
|
||||
e_aci);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -546,7 +547,7 @@ void rtl8723e_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
|
||||
}
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n", variable);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -2225,7 +2226,7 @@ void rtl8723e_set_key(struct ieee80211_hw *hw, u32 key_index,
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n", enc_algo);
|
||||
enc_algo = CAM_TKIP;
|
||||
break;
|
||||
}
|
||||
|
@@ -63,7 +63,7 @@ void rtl8723e_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n", pled->ledpin);
|
||||
break;
|
||||
}
|
||||
pled->ledon = true;
|
||||
@@ -105,7 +105,7 @@ void rtl8723e_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n", pled->ledpin);
|
||||
break;
|
||||
}
|
||||
pled->ledon = false;
|
||||
|
@@ -1023,7 +1023,8 @@ static bool _rtl8723e_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n",
|
||||
currentcmd->cmdid);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1499,7 +1500,7 @@ bool rtl8723e_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype)
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n", iotype);
|
||||
break;
|
||||
}
|
||||
} while (false);
|
||||
@@ -1536,7 +1537,8 @@ static void rtl8723e_phy_set_io(struct ieee80211_hw *hw)
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n",
|
||||
rtlphy->current_io_type);
|
||||
break;
|
||||
}
|
||||
rtlphy->set_io_inprogress = false;
|
||||
@@ -1682,7 +1684,7 @@ static bool _rtl8723e_phy_set_rf_power_state(struct ieee80211_hw *hw,
|
||||
break;
|
||||
default:
|
||||
RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
|
||||
"switch case not process\n");
|
||||
"switch case %#x not processed\n", rfpwr_state);
|
||||
bresult = false;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user