summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r--usr.sbin/relayd/log.c4
-rw-r--r--usr.sbin/relayd/relayd.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/relayd/log.c b/usr.sbin/relayd/log.c
index 5b7257a0d09..44724696450 100644
--- a/usr.sbin/relayd/log.c
+++ b/usr.sbin/relayd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.7 2007/09/07 07:52:14 reyk Exp $ */
+/* $OpenBSD: log.c,v 1.8 2007/11/04 22:09:02 reyk Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -138,7 +138,7 @@ log_debug(const char *emsg, ...)
{
va_list ap;
- if (debug) {
+ if (debug > 1) {
va_start(ap, emsg);
vlog(LOG_DEBUG, emsg, ap);
va_end(ap);
diff --git a/usr.sbin/relayd/relayd.c b/usr.sbin/relayd/relayd.c
index 8994572fbbb..6bba36e5200 100644
--- a/usr.sbin/relayd/relayd.c
+++ b/usr.sbin/relayd/relayd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayd.c,v 1.46 2007/10/19 14:40:51 pyr Exp $ */
+/* $OpenBSD: relayd.c,v 1.47 2007/11/04 22:09:02 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -133,7 +133,7 @@ main(int argc, char *argv[])
while ((c = getopt(argc, argv, "dD:nf:v")) != -1) {
switch (c) {
case 'd':
- debug = 1;
+ debug = 2;
break;
case 'D':
if (cmdline_symset(optarg) < 0)
@@ -141,7 +141,7 @@ main(int argc, char *argv[])
optarg);
break;
case 'n':
- debug = 1;
+ debug = 2;
opts |= HOSTSTATED_OPT_NOACTION;
break;
case 'f':