Skip to content

Commit

Permalink
rtlwifi: add module parameter to set global debug level
Browse files Browse the repository at this point in the history
No need to recompile the module anymore to set the debug level.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Stefan Assmann authored and John W. Linville committed Aug 22, 2011
1 parent a4042bb commit b5be7e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/wireless/rtlwifi/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit b5be7e4

Please sign in to comment.