From nobody Mon Feb 14 22:18:57 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BEC4C19C15CA; Mon, 14 Feb 2022 22:18:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JyJXd50ZFz3BtV; Mon, 14 Feb 2022 22:18:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644877137; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8kz9wd+fSyR5O7gYpli1utUrhCAQDvRpchMecf0pIKo=; b=qBredrd0YZXbGGQVLBRfTw/hHhVPsCcHOpBYWdzW+jQGAEC32h/dJ3xi8YtiKo/QkQR6wZ JPoq8ADywplYm/F1kRjFovdl03nBEl76wxH19KZ8q3qMXzMOUhcI8At2kDjCjh+xCAw6cn wVxnjKYxaZ/iUM7ak7d0YeNrFOw/OUbVHoG4C12QPAIjT5/y5NSoa9mU3u/O3Omup0Lb+g O54/kUDX2Vda2lMy4R/WrNJLYxYDwMPfGeaYxHXDkQhNOIghR6fYaZonQpX2rqfD+gBW8B EorDTUQWDPv59RzFy0mU4UyT/3y2IXwBOoOZHtv0EaVvvyJo49+WkyYTUvAgdA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8B8C716BC6; Mon, 14 Feb 2022 22:18:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21EMIv2Q038696; Mon, 14 Feb 2022 22:18:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21EMIvaJ038695; Mon, 14 Feb 2022 22:18:57 GMT (envelope-from git) Date: Mon, 14 Feb 2022 22:18:57 GMT Message-Id: <202202142218.21EMIvaJ038695@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 32cf376a01d4 - main - net80211: enhance (disabled) debugging List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 32cf376a01d42710ccbb1d6664ebd0a85c9e0064 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644877137; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8kz9wd+fSyR5O7gYpli1utUrhCAQDvRpchMecf0pIKo=; b=K/TDlFPE7N9deijFBKVFLbq2OYBjAXAoziSc/fks6Jqd7tgaz4t6EIZAdEXm1YOOlyTifa 04qosqLo4247e8O6UxPp+AgnBurHJ+c2K41xQzqsPaev9/UgAsI7YEdmBlEYPRQv/6Fte7 lwDzxKme/yolKyhycLoiVz5iWjCl1MJQCKoOAUz+PSI0LpzwgujKXIKedbMm0XoQ6JT6/p RtR/VMhumPo22m4kepqsk7TmgUGSDd41a6RqUUo59wmhAT8CzdRMM0yuFUNS2Fz/AlBZM4 mXyRUxOrMyAP4U0DYPWA0y5U7N8E2SCwqnKC+Z0AfO1MN6OWYuOtq48gHR9ZpA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644877137; a=rsa-sha256; cv=none; b=bOxVGO3nDOI/80uQrygnYtnJT1Er9fbXeq6mhm467fZ3FijyL4Gon1Ji9/llDer5zSsWqy xeyniqqbBFEF6HRXpZS0b/TkNzfTOvIuTtzKDq81uqp+2WQfzTAnZ3PNh7vubXYpZGbDSB mZVEx6GgiMWjIHsHwXEJ/Wm9+oTiYUnKU/dMiZ20LVFAeRHPSEgMDv+A41WC9UmIG0aUWS GKSud3dQrIGEZwZqYivEvvVXfUuLKpatbpxu8a03Dxso2X/zdmldzjDnt7ZoVlTwS1jA9q 1u06QWwjxmJikQwmuPehZhre6+kpTwcYqhWJMuu54Vl0i3DImN76uGPAkm//oQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=32cf376a01d42710ccbb1d6664ebd0a85c9e0064 commit 32cf376a01d42710ccbb1d6664ebd0a85c9e0064 Author: Bjoern A. Zeeb AuthorDate: 2022-02-14 22:16:59 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-14 22:16:59 +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 MFC after: 3 days --- 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)++];