Add an informational message when debug flags are changed.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3744 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mentor 2008-06-22 05:32:29 +00:00
parent 78cbb40469
commit 70e6e83fc8
2 changed files with 5 additions and 0 deletions

View File

@ -10613,6 +10613,9 @@ ATH_SYSCTL_DECL(ath_sysctl_halparam, ctl, write, filp, buffer, lenp, ppos)
case ATH_DEBUG:
sc->sc_debug = (val & ~ATH_DEBUG_GLOBAL);
ath_debug_global = (val & ATH_DEBUG_GLOBAL);
IPRINTF(sc, "Ath. debug flags changed to "
"0x%08x.\n", val);
break;
case ATH_TXANTENNA:
/*

View File

@ -542,6 +542,8 @@ IEEE80211_SYSCTL_DECL(ieee80211_sysctl_debug, ctl, write, filp, buffer,
if (ret == 0) {
vap->iv_debug = (val & ~IEEE80211_MSG_IC);
vap->iv_ic->ic_debug = (val & IEEE80211_MSG_IC);
printk(KERN_INFO "%s debug flags changed to 0x%08x.\n",
vap->iv_dev->name, val);
}
} else {
/* VAP specific and 'global' debug flags */