From nobody Mon Jan 23 13:57:12 2023 X-Original-To: dev-commits-src-branches@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 4P0s9N4x4Kz2t5mQ; Mon, 23 Jan 2023 13:57:12 +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 4P0s9N4P8fz3h39; Mon, 23 Jan 2023 13:57:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674482232; 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=Vpt3/iq1RJ98Ogw0tp5bmzyHE8vBjvB7gJjUlP/xoXE=; b=cn9c0fgXsggDRyDSbFzf+LvXKSzpA6+E+f8h7GWJUGDzzVmU6lCxbO/XeaQEWxAuRfoIol BC9yX7NjyN7Bu1QYdC5XDybTzMKa3VfWr5pVQZaR5No/TPvHLTrEzRNk9ONezV79l4xAmb EMSFTG78w2/9DfwlQvhEMrQT9pTw+52GcMu6X4djpOzA9Dag2R/sNJLkF86dZF4BLKXNOl F5EZQuAIMQz4x9obZNm1WC25VDQ+RxTnPnsOqh5InrkftNNBTXkaqX4/m5ttlqYwHJOtO1 EDCnzWJq13Edoo+udOf7NXYEuBQzu22cDPrMdpO0n925rG5V5ui0+WlMJS18Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674482232; 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=Vpt3/iq1RJ98Ogw0tp5bmzyHE8vBjvB7gJjUlP/xoXE=; b=RuPWfmBn0UVTzaDFKaUtDKp1B4lyurwt12NEY9Gs+BWbtgRUdAu6JUw2IgUscUmRuTihID GS3sFk4xWjIGtmRhiIUwq8Q07D8sxuawjxnovsDSv+oSztZtzFUJAYkR70DNY0PEmG2uEd oqCEvcwdRqNnb0kDmleZVyn19jEt/ECxjDnnOB5cuAlzN/WSJAhfN72hwBEiTaYTdm7v+d RMoVwHbdn91jbskZLzlSD41Lp/qSEGWoI5vAfzJcvZieTio5dU0weRdFDd72JmbTJOMwe5 Jzsdp9qzwve5cmAzZYMc01lSKXleYhrrHJetDyNV/eS8f2aZI8UBPKdsKBoglw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674482232; a=rsa-sha256; cv=none; b=SErAzE7oGPKFXbEJ6IipX57Wr2LTMqGIHHNGy58ra1ddOnPSMl2gDaoODdkJWI0XLHWyzm 97DzF0dMjioOaVOsIAke5+E75EIrtBlT8kAiGkA74ZjeG2KG4WwRVcZghcXR0LQqG29n/K nNzyrEAxriI5kaPvWmvJCE/9NY0exaqi1I/69Gw920k0TqFYuDkq2E01y5LW68SBLMc/WE 2CzvcrUFM6Rd08LL0IjxrNwizE72CQhbqbjJKg/XRTIAw48uvc5pX1qDqyQQFNIAYDNWXX phhi1HqWNhzES/a24KQuEnwyAO3qQrgco4WW96B5cSBZBlbZUZRYpbyN7Sn9GA== 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 4P0s9N3QJwzX5d; Mon, 23 Jan 2023 13:57:12 +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 30NDvCn5000609; Mon, 23 Jan 2023 13:57:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30NDvCul000608; Mon, 23 Jan 2023 13:57:12 GMT (envelope-from git) Date: Mon, 23 Jan 2023 13:57:12 GMT Message-Id: <202301231357.30NDvCul000608@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: ab1e089df8cf - stable/13 - debugnet: remove spurious message on boot List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: ab1e089df8cf984b00cf232beac7579989378cf4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ab1e089df8cf984b00cf232beac7579989378cf4 commit ab1e089df8cf984b00cf232beac7579989378cf4 Author: Franco Fichtner AuthorDate: 2022-12-16 15:27:18 +0000 Commit: Mark Johnston CommitDate: 2023-01-23 13:50:12 +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 (cherry picked from commit 346b8b25d90acbbbc829ddf2227ab978ffdaec7a) --- 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;