]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[ifmgmt] Include human-readable error message for configuration failure
authorMichael Brown <mcb30@ipxe.org>
Tue, 8 Mar 2016 14:36:31 +0000 (14:36 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 8 Mar 2016 17:45:30 +0000 (17:45 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/usr/ifmgmt.c

index aefdaa45dbd30dd9d07bd19e52026f4f17f66c74..f367149f797772f503ddad0fa481d88c38b07669 100644 (file)
@@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
 #include <ipxe/job.h>
 #include <ipxe/monojob.h>
 #include <ipxe/timer.h>
+#include <ipxe/errortab.h>
 #include <usr/ifmgmt.h>
 
 /** @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
  *