Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 2021 11:54:01 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 16e4988fb79d - stable/12 - dummynet: reduce console spam
Message-ID:  <202107161154.16GBs1r4016334@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=16e4988fb79d64cfc7c0dddcac0f1e226d93388b

commit 16e4988fb79d64cfc7c0dddcac0f1e226d93388b
Author:     Luiz Otavio O Souza <loos@FreeBSD.org>
AuthorDate: 2016-02-11 13:35:01 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-07-16 08:04:13 +0000

    dummynet: reduce console spam
    
    Only print this warning when boot verbose is enabled.
    This can get pretty annoying (and useless) in some systems.
    
    Reviewed by:    kp
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit c5dd8bac0b96e11da02181bd1dbee677e270842d)
---
 sys/netpfil/ipfw/ip_dummynet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netpfil/ipfw/ip_dummynet.c b/sys/netpfil/ipfw/ip_dummynet.c
index 57565e0d7d23..5a88a803e88d 100644
--- a/sys/netpfil/ipfw/ip_dummynet.c
+++ b/sys/netpfil/ipfw/ip_dummynet.c
@@ -170,7 +170,7 @@ ipdn_bound_var(int *v, int dflt, int lo, int hi, const char *msg)
 		op = "Clamp";
 	} else
 		return *v;
-	if (op && msg)
+	if (op && msg && bootverbose)
 		printf("%s %s to %d (was %d)\n", op, msg, *v, oldv);
 	return *v;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107161154.16GBs1r4016334>