diff options
author | Michael Brown <mcb30@ipxe.org> | 2016-03-08 14:36:31 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2016-03-08 17:45:30 +0000 |
commit | 8290a10abaacf1f0b2b3e183deb201b6ed86caf2 (patch) | |
tree | fcc89aefdd6b6c01ca17380210ac993ed0dc30c3 /src/usr | |
parent | 9939b704f132f08bebf95e5713d2b5e6bf2b0b0a (diff) | |
download | ipxe-8290a10abaacf1f0b2b3e183deb201b6ed86caf2.tar.gz |
[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.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <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 * |