From: krw Date: Mon, 29 Jan 2018 15:18:05 +0000 (+0000) Subject: Missed a couple of log_info()'s in previous commit. Use #ifdef DEBUG X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c733df583e8085b19dfd4b2855a125073f214df1;p=openbsd Missed a couple of log_info()'s in previous commit. Use #ifdef DEBUG instead of #if DEBUG. --- 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 @@ -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 @@ -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)