rtlwifi: add module parameter to set global debug level
PATCH v2 1/1 rtlwifi: add module parameter to set global debug level
No need to recompile the module anymore to set the debug level.
Signed-off-by Stefan Assmann <[email protected]>
--- drivers/net/wireless/rtlwifi/debug.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
drivers/net/wireless/rtlwifi/debug.c +5 -1
@@ -28,12 +28,16 @@#include "wifi.h" +static unsigned int debug =DBG_EMERG ; +module_param (debug, uint,0 ); +MODULE_PARM_DESC (debug,"Set global debug level for rtlwifi (0,2-5)" ); +void rtl_dbgp_flag_init (struct ieee80211_hw *hw) {struct rtl_priv *rtlpriv =rtl_priv (hw);u8 i; - rtlpriv->dbg.global_debuglevel =DBG_EMERG ; + rtlpriv->dbg.global_debuglevel = debug; rtlpriv->dbg.global_debugcomponents = COMP_ERR | COMP_FW | COMP_INIT | COMP_RECV | COMP_SEND |
Signature · 1 line
1.7.6
Quoted 3 lines · Stefan Assmann
No need to recompile the module anymore to set the debug level.
Signed-off-by Stefan Assmann<[email protected]>
Signed-off-by Larry Finger <[email protected]>
Quoted 26 lines
--- drivers/net/wireless/rtlwifi/debug.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)drivers/net/wireless/rtlwifi/debug.c +5
-1@@ -28,12 +28,16 @@#include "wifi.h" +static unsigned int debug =DBG_EMERG ; +module_param (debug, uint,0 ); +MODULE_PARM_DESC (debug,"Set global debug level for rtlwifi (0,2-5)" ); +void rtl_dbgp_flag_init (struct ieee80211_hw *hw) {struct rtl_priv *rtlpriv =rtl_priv (hw);u8 i; - rtlpriv->dbg.global_debuglevel =DBG_EMERG ; + rtlpriv->dbg.global_debuglevel = debug; rtlpriv->dbg.global_debugcomponents = COMP_ERR | COMP_FW | COMP_INIT | COMP_RECV | COMP_SEND |