From: Michael Brown Date: Tue, 8 Mar 2016 14:36:31 +0000 (+0000) Subject: [ifmgmt] Include human-readable error message for configuration failure X-Git-Tag: v1.20.1~549 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8290a10abaacf1f0b2b3e183deb201b6ed86caf2;p=thirdparty%2Fipxe.git [ifmgmt] Include human-readable error message for configuration failure Signed-off-by: Michael Brown --- diff --git a/src/usr/ifmgmt.c b/src/usr/ifmgmt.c index aefdaa45d..f367149f7 100644 --- a/src/usr/ifmgmt.c +++ b/src/usr/ifmgmt.c @@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include #include #include +#include #include /** @file @@ -50,6 +51,11 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); __einfo_uniqify ( EINFO_EADDRNOTAVAIL, 0x01, \ "No configuration methods succeeded" ) +/** Human-readable error message */ +struct errortab ifmgmt_errors[] __errortab = { + __einfo_errortab ( EINFO_EADDRNOTAVAIL_CONFIG ), +}; + /** * Open network device *