Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Dec 2021 17:35:19 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 2e59c9c7f01e - main - net80211: adjust a printf to toeee80211_note
Message-ID:  <202112261735.1BQHZJWR080831@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=2e59c9c7f01e9e8878664f59438d1ed6c27d0e2b

commit 2e59c9c7f01e9e8878664f59438d1ed6c27d0e2b
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-12-26 17:26:58 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-12-26 17:26:58 +0000

    net80211: adjust a printf to toeee80211_note
    
    Throughout net80211 there are multiple ways to log (debugging)
    information.  Start to clenaup one as I kept hitting it to harmonize
    the output.  The more we get away from printfs into either wrapper
    functions or macros the more likely we can use holistic systematic
    tracing in the future.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
---
 sys/net80211/ieee80211_output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index 66d659af0866..c6898810a694 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -1057,7 +1057,7 @@ ieee80211_mgmt_output(struct ieee80211_node *ni, struct mbuf *m, int type,
 	/* avoid printing too many frames */
 	if ((ieee80211_msg_debug(vap) && doprint(vap, type)) ||
 	    ieee80211_msg_dumppkts(vap)) {
-		printf("[%s] send %s on channel %u\n",
+		ieee80211_note(vap, "[%s] send %s on channel %u\n",
 		    ether_sprintf(wh->i_addr1),
 		    ieee80211_mgt_subtype_name(type),
 		    ieee80211_chan2ieee(ic, ic->ic_curchan));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112261735.1BQHZJWR080831>