diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-07-06 03:13:35 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-07-06 03:13:35 +0000 |
commit | 6d983eca391197cb1e744d7066dbd0463ebfbc7a (patch) | |
tree | 5384be1a3c9db9e3a9c12a871cf9bdf669a2934a /sbin | |
parent | c84ba396ea295e507a12a1d3f0613debf326d6a4 (diff) |
Tone down verbosity by putting the "Unexpected <blah>" messages under
#ifdef DEBUG. They were mostly for, well, debugging.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/dhclient.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index f20370e3a27..ceeea506b00 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.258 2013/07/05 22:13:10 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.259 2013/07/06 03:13:34 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -722,7 +722,9 @@ dhcpack(struct in_addr client_addr, struct option_data *options, char *info) client->state != S_REQUESTING && client->state != S_RENEWING && client->state != S_REBINDING) { - note("Unexpected %s. State #%d", info, client->state); +#ifdef DEBUG + debug("Unexpected %s. State #%d", info, client->state); +#endif return; } @@ -887,7 +889,9 @@ dhcpoffer(struct in_addr client_addr, struct option_data *options, char *info) time_t stop_selecting; if (client->state != S_SELECTING) { - note("Unexpected %s. State #%d.", info, client->state); +#ifdef DEBUG + debug("Unexpected %s. State #%d.", info, client->state); +#endif return; } @@ -1051,12 +1055,16 @@ dhcpnak(struct in_addr client_addr, struct option_data *options, char *info) client->state != S_REQUESTING && client->state != S_RENEWING && client->state != S_REBINDING) { - note("Unexpected %s. State #%d", info, client->state); +#ifdef DEBUG + debug("Unexpected %s. State #%d", info, client->state); +#endif return; } if (!client->active) { - note("Unexpected %s. No active lease.", info); +#ifdef DEBUG + debug("Unexpected %s. No active lease.", info); +#endif return; } |