summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2018-01-29 15:18:06 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2018-01-29 15:18:06 +0000
commit7d95b4471e6defb0f8b877882b333d7716870c92 (patch)
treeb68eb1170482dae63a3eda23344c8e1fc0cc9f5c
parent634a2ecec4e79b65aebefab9fd496c6287cd0eca (diff)
Missed a couple of log_info()'s in previous commit. Use #ifdef DEBUG
instead of #if DEBUG.
-rw-r--r--sbin/dhclient/dhclient.c8
-rw-r--r--sbin/dhclient/dhcpd.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index daa75c7a2c7..29ed2bced20 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.548 2018/01/29 13:41:30 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.549 2018/01/29 15:18:05 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -837,7 +837,7 @@ dhcpoffer(struct interface_info *ifi, struct option_data *options,
return;
}
- log_info("%s: DHCPOFFER from %s", log_procname, src);
+ log_debug("%s: DHCPOFFER from %s", log_procname, src);
process_offer(ifi, options);
}
@@ -851,7 +851,7 @@ bootreply(struct interface_info *ifi, struct option_data *options,
return;
}
- log_info("%s: BOOTREPLY from %s", log_procname, src);
+ log_debug("%s: BOOTREPLY from %s", log_procname, src);
process_offer(ifi, options);
}
@@ -942,7 +942,7 @@ dhcpnak(struct interface_info *ifi, const char *src)
return;
}
- log_info("%s: DHCPNAK from %s", log_procname, src);
+ log_debug("%s: DHCPNAK from %s", log_procname, src);
delete_address(ifi->active->address);
/* XXX Do we really want to remove a NAK'd lease from the database? */
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h
index 99763ef0dd5..a74cbd4712b 100644
--- a/sbin/dhclient/dhcpd.h
+++ b/sbin/dhclient/dhcpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhcpd.h,v 1.247 2018/01/28 23:12:36 krw Exp $ */
+/* $OpenBSD: dhcpd.h,v 1.248 2018/01/29 15:18:05 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
@@ -149,7 +149,7 @@ struct interface_info {
struct client_lease_tq lease_db;
};
-#if DEBUG
+#ifdef DEBUG
#define DPRINTF(...) log_debug(__VA_ARGS__)
#else
#define DPRINTF(...) do {} while(0)