summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMichael Brown2016-03-08 15:36:31 +0100
committerMichael Brown2016-03-08 18:45:30 +0100
commit8290a10abaacf1f0b2b3e183deb201b6ed86caf2 (patch)
treefcc89aefdd6b6c01ca17380210ac993ed0dc30c3 /src/usr
parent[ipoib] Increase number of transmit work queue entries (diff)
downloadipxe-8290a10abaacf1f0b2b3e183deb201b6ed86caf2.tar.gz
ipxe-8290a10abaacf1f0b2b3e183deb201b6ed86caf2.tar.xz
ipxe-8290a10abaacf1f0b2b3e183deb201b6ed86caf2.zip
[ifmgmt] Include human-readable error message for configuration failure
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/ifmgmt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/ifmgmt.c b/src/usr/ifmgmt.c
index aefdaa45..f367149f 100644
--- a/src/usr/ifmgmt.c
+++ b/src/usr/ifmgmt.c
@@ -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
*