summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d/ospf6d.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2011-08-20 19:02:29 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2011-08-20 19:02:29 +0000
commitabb7f3e568a613a7d6daf6af3556386e08bfee52 (patch)
treee138e84c6cdd55dfd8570964868e01deff349f80 /usr.sbin/ospf6d/ospf6d.c
parent564f667f41c7007f68568b2bbaabd0b6204a0055 (diff)
Decouple log_verbose() from log_init() so the verbose flag stays set with
"-v" (previously only "-vd" worked). Similar to recent ospfd commit. ok claudio@
Diffstat (limited to 'usr.sbin/ospf6d/ospf6d.c')
-rw-r--r--usr.sbin/ospf6d/ospf6d.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ospf6d/ospf6d.c b/usr.sbin/ospf6d/ospf6d.c
index 68187ef26eb..5583c50479d 100644
--- a/usr.sbin/ospf6d/ospf6d.c
+++ b/usr.sbin/ospf6d/ospf6d.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospf6d.c,v 1.21 2010/08/22 21:15:25 bluhm Exp $ */
+/* $OpenBSD: ospf6d.c,v 1.22 2011/08/20 19:02:28 sthen Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -135,6 +135,7 @@ main(int argc, char *argv[])
ospfd_process = PROC_MAIN;
log_init(1); /* log to stderr until daemonized */
+ log_verbose(1);
while ((ch = getopt(argc, argv, "cdD:f:nv")) != -1) {
switch (ch) {
@@ -210,6 +211,7 @@ main(int argc, char *argv[])
errx(1, "unknown user %s", OSPF6D_USER);
log_init(debug);
+ log_verbose(ospfd_conf->opts & OSPFD_OPT_VERBOSE);
if (!debug)
daemon(1, 0);