rtlwifi: Add switch variable to 'switch case not processed' messages
[cascardo/linux.git] / drivers / net / wireless / realtek / rtlwifi / rtl8723be / phy.c
index 285818d..3cc2232 100644 (file)
@@ -837,7 +837,7 @@ bool rtl8723be_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
                break;
        case RF90_PATH_D:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", rfpath);
                break;
        }
        return true;
@@ -1507,7 +1507,8 @@ static bool _rtl8723be_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;
                }
 
@@ -2515,7 +2516,7 @@ bool rtl8723be_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);
@@ -2553,7 +2554,8 @@ static void rtl8723be_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;
@@ -2705,7 +2707,7 @@ static bool _rtl8723be_phy_set_rf_power_state(struct ieee80211_hw *hw,
 
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
-                        "switch case not process\n");
+                        "switch case %#x not processed\n", rfpwr_state);
                bresult = false;
                break;
        }