summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/snmpd/log.c5
-rw-r--r--usr.sbin/snmpd/snmpd.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/snmpd/log.c b/usr.sbin/snmpd/log.c
index 5a04aab925e..6d47ebdc67a 100644
--- a/usr.sbin/snmpd/log.c
+++ b/usr.sbin/snmpd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.7 2015/02/08 23:07:49 tedu Exp $ */
+/* $OpenBSD: log.c,v 1.8 2015/02/08 23:28:48 tedu Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -52,8 +52,7 @@ log_init(int n_debug)
extern char *__progname;
debug = n_debug;
- if (debug && !verbose)
- verbose = 1;
+ verbose = n_debug;
if (!debug)
openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON);
diff --git a/usr.sbin/snmpd/snmpd.c b/usr.sbin/snmpd/snmpd.c
index 41681f56969..37bcf23e8c1 100644
--- a/usr.sbin/snmpd/snmpd.c
+++ b/usr.sbin/snmpd/snmpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmpd.c,v 1.26 2015/02/08 23:07:49 tedu Exp $ */
+/* $OpenBSD: snmpd.c,v 1.27 2015/02/08 23:28:48 tedu Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -145,7 +145,7 @@ main(int argc, char *argv[])
while ((c = getopt(argc, argv, "dD:nNf:v")) != -1) {
switch (c) {
case 'd':
- debug = 1;
+ debug++;
break;
case 'D':
if (cmdline_symset(optarg) < 0)