Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rtadvd warn only for > INFO level messages.



details:   https://anonhg.NetBSD.org/src/rev/edc052361336
branches:  trunk
changeset: 1009995:edc052361336
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 10 22:38:51 2020 +0000

description:
warn only for > INFO level messages.

diffstat:

 usr.sbin/rtadvd/rtadvd.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 119987176d1b -r edc052361336 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c  Sun May 10 22:33:09 2020 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c  Sun May 10 22:38:51 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtadvd.c,v 1.76 2020/05/10 22:33:09 christos Exp $     */
+/*     $NetBSD: rtadvd.c,v 1.77 2020/05/10 22:38:51 christos Exp $     */
 /*     $KAME: rtadvd.c,v 1.92 2005/10/17 14:40:02 suz Exp $    */
 
 /*
@@ -1808,6 +1808,8 @@
                va_end(ap);
                return;
        }
+       if (level >= LOG_INFO && !dflag)
+               return;
 
        vwarnx(expandm(fmt, "\n", &buf), ap);
        free(buf);



Home | Main Index | Thread Index | Old Index