Date: Sun, 20 Feb 2022 18:15:41 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: e709b7d77840 - stable/13 - net80211: enhance (disabled) debugging Message-ID: <202202201815.21KIFfwG023031@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=e709b7d7784037d11df3252dac5e70be61a0db1c commit e709b7d7784037d11df3252dac5e70be61a0db1c Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-02-14 22:16:59 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-02-20 16:24:57 +0000 net80211: enhance (disabled) debugging Add maxchans to the disabled debugging in addchan() and copychan_prev() to aid debugging possible errors rreturned due to reaching maxchans limits. Sponsored by: The FreeBSD Foundation (cherry picked from commit 32cf376a01d42710ccbb1d6664ebd0a85c9e0064) --- sys/net80211/ieee80211.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 35cf7abdbf3b..4bed673a78b9 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -1287,8 +1287,8 @@ addchan(struct ieee80211_channel chans[], int maxchans, int *nchans, return (ENOBUFS); #if 0 - printf("%s: %d: ieee=%d, freq=%d, flags=0x%08x\n", - __func__, *nchans, ieee, freq, flags); + printf("%s: %d of %d: ieee=%d, freq=%d, flags=0x%08x\n", + __func__, *nchans, maxchans, ieee, freq, flags); #endif c = &chans[(*nchans)++]; @@ -1317,8 +1317,8 @@ copychan_prev(struct ieee80211_channel chans[], int maxchans, int *nchans, return (ENOBUFS); #if 0 - printf("%s: %d: flags=0x%08x\n", - __func__, *nchans, flags); + printf("%s: %d of %d: flags=0x%08x\n", + __func__, *nchans, maxchans, flags); #endif c = &chans[(*nchans)++];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202201815.21KIFfwG023031>