瀏覽代碼

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 年之前
父節點
當前提交
8290a10aba
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      src/usr/ifmgmt.c

+ 6
- 0
src/usr/ifmgmt.c 查看文件

@@ -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…
取消
儲存