From nobody Fri Dec 16 16:02:15 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 4NYYlD0mWXz1CdKy; Fri, 16 Dec 2022 16:02:16 +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 4NYYlD04Pbz3HFb; Fri, 16 Dec 2022 16:02:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671206536; 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=Gb1xtOVem3WlaztqlEfzO1HVUSNKlJz0SYc0SNtY3CY=; b=UNHCSYkLeS6+o7x95ehF/iXc6h/y6vHX1YYJhXmYylgKNy9KqY1j4HfSyx1oHE+XyI1zLv ak39VoNfYOrNrq9WavXD7tNW+ytXDZzYrKqh2tBM9xsLAGXXzhB/Ph9kGENEWiOZ/c1M8s oy546jrkCfkKkrspC61EUr4j6kcXiayXURgazxe6n5XmButW8B/rdmWOLCjODLqbghxQzV PtBiL+oIwIFNtTVaFfX/mdRlvQQ0tBX4WxfbwhsxiAMVzw83L5clI2nAK/xX56z6b5EKwS YvYn69NIFoWhMv7DA3hx8v8bTWou+w2qiojXKkdWqe/puovAx2hUkyqifFh8kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671206536; 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=Gb1xtOVem3WlaztqlEfzO1HVUSNKlJz0SYc0SNtY3CY=; b=p6pqKypz8s34XvbUv3sHuSlnBYeinAIO7sVBtFnbQgxclOKYUcQwpCndn2ynw488pNqQBJ asZTbjC1EIYYQXS1/uJn4A4vfvs7n8bC7V93wFq3Kb5mA3ZPsNKSj+7iREriRmqW1B+336 A3faAei0gI4h6LTy5RW7hYqS4ONrn7ZLDuf9HbLnw9iYWqbXfuWZWR19baB1ed0Z6GeHtd 6q07n0QpM6zQ4JPui+6BFOzKaQKAP5u7ZFtv6+KAhYFVJHhghkxxXwZBPvd06eem20ivFO FmG4W/+xO0AA8xOmUU+4ZOvmXeyeI8hDlXTO9UmRLw5++2HQPimdkD+qhHujUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671206536; a=rsa-sha256; cv=none; b=UpE+ukyhOTNbSWwbtuJ5rBXXyPspSdYn4N2a3KW/MeT+/bjSRMfTjo358BgttFBU0gpkvC 9aYC9AlaGeGNqfGOgYwsU7FHp+WGgXZ8Gk/Ly/LbsRgt20jVPkURygWv4/ryG1NSwtys7H 1OcuPjHd+OwSacHx4kt4iULncnvlafu0TRWBcLkeSak614su+rCiz+AprHssmLK/a4vmLf rStLcv20nf6CfcWmBe/T7TAcmRpPblBnDz5Kt7Zi7UNLKYi1x8Spe9/Eixb+0epYqQLstx uWKfWOa2Knzd+8wTD0FvJH1bxvDst4VmDolooHmA9W6QhnkD/rwIn6tMG4v9NA== 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 4NYYlC6CHyzJd1; Fri, 16 Dec 2022 16:02:15 +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 2BGG2FGG040511; Fri, 16 Dec 2022 16:02:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BGG2FEJ040510; Fri, 16 Dec 2022 16:02:15 GMT (envelope-from git) Date: Fri, 16 Dec 2022 16:02:15 GMT Message-Id: <202212161602.2BGG2FEJ040510@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 346b8b25d90a - main - debugnet: remove spurious message on boot 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 346b8b25d90acbbbc829ddf2227ab978ffdaec7a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=346b8b25d90acbbbc829ddf2227ab978ffdaec7a commit 346b8b25d90acbbbc829ddf2227ab978ffdaec7a Author: Franco Fichtner AuthorDate: 2022-12-16 15:27:18 +0000 Commit: Mark Johnston CommitDate: 2022-12-16 15:30:58 +0000 debugnet: remove spurious message on boot In non-INVARIANTS kernels, hide the warning message printed by debugnet when an interface MTU is configured or link state changes, and debugnet cannot infer the number of mbuf clusters to reserve. The warning isn't really actionable and mostly serves to confuse users. Reviewed by: vangyzen, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D34393 --- sys/net/debugnet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net/debugnet.c b/sys/net/debugnet.c index 3295b33c3dd6..b41d93eca7fe 100644 --- a/sys/net/debugnet.c +++ b/sys/net/debugnet.c @@ -855,6 +855,9 @@ debugnet_any_ifnet_update(struct ifnet *ifp) * dn_init method is available. */ if (nmbuf == 0 || ncl == 0 || clsize == 0) { +#ifndef INVARIANTS + if (bootverbose) +#endif printf("%s: Bad dn_init result from %s (ifp %p), ignoring.\n", __func__, if_name(ifp), ifp); return;