From 9746f1adee393c493f2fa78ad31a8789dcb9e1fd Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Sun, 7 Feb 2016 23:36:44 +0000 Subject: Hide some excessive net80211 debug printfs behind ieee80211_debug >= 2. --- sys/net80211/ieee80211_input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net80211') diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index 6db5e492915..a2be77453dd 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_input.c,v 1.158 2016/02/05 19:42:04 stsp Exp $ */ +/* $OpenBSD: ieee80211_input.c,v 1.159 2016/02/07 23:36:43 stsp Exp $ */ /*- * Copyright (c) 2001 Atsushi Onoe @@ -192,7 +192,7 @@ ieee80211_input_print(struct ieee80211com *ic, struct ifnet *ifp, break; } #ifdef IEEE80211_DEBUG - doprint += ieee80211_debug; + doprint += (ieee80211_debug > 1); #endif if (!doprint) return; @@ -1556,7 +1556,7 @@ ieee80211_recv_probe_resp(struct ieee80211com *ic, struct mbuf *m, return; #ifdef IEEE80211_DEBUG - if (ieee80211_debug && + if (ieee80211_debug > 1 && (ni == NULL || ic->ic_state == IEEE80211_S_SCAN)) { printf("%s: %s%s on chan %u (bss chan %u) ", __func__, (ni == NULL ? "new " : ""), -- cgit v1.2.3