From bf35bb6dae41c97716f0b69c4725fb50e7b9b982 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Sat, 16 Apr 2011 10:30:30 +0000 Subject: Allow -v (verbose logging) to work if a -D option is supplied. Previously, a specific check was made for any -D log option being used and, if so, *no* -v log entries are made, losing potentially useful log entries. ok lum@ --- sbin/isakmpd/log.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c index c52086f5dcf..4c3ca78abc5 100644 --- a/sbin/isakmpd/log.c +++ b/sbin/isakmpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.60 2007/06/02 01:29:11 pvalchev Exp $ */ +/* $OpenBSD: log.c,v 1.61 2011/04/16 10:30:29 sthen Exp $ */ /* $EOM: log.c,v 1.30 2000/09/29 08:19:23 niklas Exp $ */ /* @@ -329,15 +329,10 @@ void log_verbose(const char *fmt, ...) { va_list ap; - int i; if (verbose_logging == 0) return; - for (i = 0; i < LOG_ENDCLASS; i++) - if (log_level[i] > 0) - return; - va_start(ap, fmt); _log_print(0, LOG_NOTICE, fmt, ap, LOG_PRINT, 0); va_end(ap); -- cgit v1.2.3