summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-01-13 22:50:34 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-01-13 22:50:34 +0000
commit2033ac9b2fe03e522c8536f59c74436a14d93b91 (patch)
tree732c87417baac17d0f6de560c2ba2fff143dff3e /sbin/dhclient
parenta90d9482cf493267b048ac28ccf91318c51bfdf2 (diff)
More informative error message.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/options.c6
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;
}