Skip to contentSkip to conversation

mac80211: add #ifdef CONFIG_MAC80211_VERBOSE_DEBUG for a debug printk

PATCH New Felix Fietkau 1 participant 1 message Feb 7, 2012 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: add #ifdef CONFIG_MAC80211_VERBOSE_DEBUG for a debug printk

When not debugging mac80211 code, station state transitions do not need to show up in the kernel log.

---
 net/mac80211/sta_info.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
net/mac80211/sta_info.c +2 -0
index 31cd6d9..4034ee6 100644
@@ -1379,8 +1379,10 @@ int sta_info_move_state(struct sta_info *sta,
 		return -EINVAL;
 	}
 
+#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
 	printk(KERN_DEBUG "%s: moving STA %pM to state %d\n",
 		sta->sdata->name, sta->sta.addr, new_state);
+#endif
 
 	/*
 	 * notify the driver before the actual changes so it can
Signature · 1 line
1.7.3.2