diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-01-13 22:50:34 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-01-13 22:50:34 +0000 |
commit | 2033ac9b2fe03e522c8536f59c74436a14d93b91 (patch) | |
tree | 732c87417baac17d0f6de560c2ba2fff143dff3e /sbin/dhclient | |
parent | a90d9482cf493267b048ac28ccf91318c51bfdf2 (diff) |
More informative error message.
Diffstat (limited to 'sbin/dhclient')
-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; } |