diff options
author | 2013-01-13 22:50:33 +0000 | |
---|---|---|
committer | 2013-01-13 22:50:33 +0000 | |
commit | 28f2359a8f3dc6ff5d9333d882560033cdfd01ca (patch) | |
tree | 5864277818f9c470c37d474498762f7166169f79 | |
parent | Make pretty_print_option() return "" rather than "<fmt error>" when (diff) | |
download | wireguard-openbsd-28f2359a8f3dc6ff5d9333d882560033cdfd01ca.tar.xz wireguard-openbsd-28f2359a8f3dc6ff5d9333d882560033cdfd01ca.zip |
More informative error message.
-rw-r--r-- | sbin/dhclient/options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/options.c b/sbin/dhclient/options.c index 3ce831ccc67..205312b0ae5 100644 --- a/sbin/dhclient/options.c +++ b/sbin/dhclient/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.46 2013/01/13 22:09:38 krw Exp $ */ +/* $OpenBSD: options.c,v 1.47 2013/01/13 22:50:33 krw Exp $ */ /* DHCP options parsing and reassembly. */ @@ -298,8 +298,8 @@ pretty_print_option(unsigned int code, struct option_data *option, } /* Check for too many bytes... */ if (numhunk == -1 && hunksize < len) { - warning("%s: %d extra bytes", - dhcp_options[code].name, len - hunksize); + warning("%s: expecting only %d bytes: got %d", + dhcp_options[code].name, hunksize, len); goto done; } |