Module Name:    src
Committed By:   christos
Date:           Sun May 10 22:38:51 UTC 2020

Modified Files:
        src/usr.sbin/rtadvd: rtadvd.c

Log Message:
warn only for > INFO level messages.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/usr.sbin/rtadvd/rtadvd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/rtadvd/rtadvd.c
diff -u src/usr.sbin/rtadvd/rtadvd.c:1.76 src/usr.sbin/rtadvd/rtadvd.c:1.77
--- src/usr.sbin/rtadvd/rtadvd.c:1.76	Sun May 10 18:33:09 2020
+++ src/usr.sbin/rtadvd/rtadvd.c	Sun May 10 18:38:51 2020
@@ -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 @@ logit(int level, const char *fmt, ...)
 		va_end(ap);
 		return;
 	}
+	if (level >= LOG_INFO && !dflag)
+		return;
 
 	vwarnx(expandm(fmt, "\n", &buf), ap);
 	free(buf);

Reply via email to