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,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
33 33
 #include <ipxe/job.h>
34 34
 #include <ipxe/monojob.h>
35 35
 #include <ipxe/timer.h>
36
+#include <ipxe/errortab.h>
36 37
 #include <usr/ifmgmt.h>
37 38
 
38 39
 /** @file
@@ -50,6 +51,11 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
50 51
 	__einfo_uniqify ( EINFO_EADDRNOTAVAIL, 0x01,			\
51 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 60
  * Open network device
55 61
  *

Loading…
Cancel
Save