Browse Source

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
8290a10aba
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/usr/ifmgmt.c

+ 6
- 0
src/usr/ifmgmt.c View File

33
 #include <ipxe/job.h>
33
 #include <ipxe/job.h>
34
 #include <ipxe/monojob.h>
34
 #include <ipxe/monojob.h>
35
 #include <ipxe/timer.h>
35
 #include <ipxe/timer.h>
36
+#include <ipxe/errortab.h>
36
 #include <usr/ifmgmt.h>
37
 #include <usr/ifmgmt.h>
37
 
38
 
38
 /** @file
39
 /** @file
50
 	__einfo_uniqify ( EINFO_EADDRNOTAVAIL, 0x01,			\
51
 	__einfo_uniqify ( EINFO_EADDRNOTAVAIL, 0x01,			\
51
 			  "No configuration methods succeeded" )
52
 			  "No configuration methods succeeded" )
52
 
53
 
54
+/** Human-readable error message */
55
+struct errortab ifmgmt_errors[] __errortab = {
56
+	__einfo_errortab ( EINFO_EADDRNOTAVAIL_CONFIG ),
57
+};
58
+
53
 /**
59
 /**
54
  * Open network device
60
  * Open network device
55
  *
61
  *

Loading…
Cancel
Save