Date: Thu, 30 Dec 2021 19:22:42 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e56099769d72 - stable/13 - net80211: adjust a printf to toeee80211_note Message-ID: <202112301922.1BUJMgnI017440@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=e56099769d725828032aa9c6c49a4fd34f0a3e24 commit e56099769d725828032aa9c6c49a4fd34f0a3e24 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-30 18:27:02 +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 (cherry picked from commit 2e59c9c7f01e9e8878664f59438d1ed6c27d0e2b) --- 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?202112301922.1BUJMgnI017440>