The branch main has been updated by kp:

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

commit c5dd8bac0b96e11da02181bd1dbee677e270842d
Author:     Luiz Otavio O Souza <l...@freebsd.org>
AuthorDate: 2016-02-11 13:35:01 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2021-07-08 18:25:05 +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")
---
 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 56fa56138d96..d3242fd85817 100644
--- a/sys/netpfil/ipfw/ip_dummynet.c
+++ b/sys/netpfil/ipfw/ip_dummynet.c
@@ -169,7 +169,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;
 }
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to