david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[ifmgmt] Include human-readable error message for configuration failure

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2016-03-08 14:36:31 +00:00
parent 9939b704f1
commit 8290a10aba
1 changed files with 6 additions and 0 deletions

View 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
*