mirror of https://github.com/acidanthera/audk.git
MdePkg: Add new status codes to PrintLib
PrintLib does not correctly decode the follow status codes: 1. EFI_IP_ADDRESS_CONFLICT 2. EFI_HTTP_ERROR 3. EFI_WARN_FILE_SYSTEM 4. EFI_WARN_RESET_REQUIRED These missing status codes have been added. Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
This commit is contained in:
parent
107ddf1de9
commit
3c274c0d83
|
@ -8,8 +8,8 @@
|
|||
|
||||
#include "PrintLibInternal.h"
|
||||
|
||||
#define WARNING_STATUS_NUMBER 5
|
||||
#define ERROR_STATUS_NUMBER 33
|
||||
#define WARNING_STATUS_NUMBER 7
|
||||
#define ERROR_STATUS_NUMBER 35
|
||||
|
||||
//
|
||||
// Safe print checks
|
||||
|
@ -37,6 +37,8 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 mWarningString[][24+1] = {
|
|||
"Warning Write Failure", // RETURN_WARN_WRITE_FAILURE = 3
|
||||
"Warning Buffer Too Small", // RETURN_WARN_BUFFER_TOO_SMALL = 4
|
||||
"Warning Stale Data", // RETURN_WARN_STALE_DATA = 5
|
||||
"Warning File System", // RETURN_WARN_FILE_SYSTEM = 6
|
||||
"Warning Reset Required", // RETURN_WARN_RESET_REQUIRED = 7
|
||||
};
|
||||
|
||||
//
|
||||
|
@ -75,7 +77,9 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 mErrorString[][20+1] = {
|
|||
"Reserved (30)", // RESERVED = 30 | MAX_BIT
|
||||
"End of File", // RETURN_END_OF_FILE = 31 | MAX_BIT
|
||||
"Invalid Language", // RETURN_INVALID_LANGUAGE = 32 | MAX_BIT
|
||||
"Compromised Data" // RETURN_COMPROMISED_DATA = 33 | MAX_BIT
|
||||
"Compromised Data", // RETURN_COMPROMISED_DATA = 33 | MAX_BIT
|
||||
"IP Address Conflict", // RETURN_IP_ADDRESS_CONFLICT = 34 | MAX_BIT
|
||||
"HTTP Error" // RETURN_HTTP_ERROR = 35 | MAX_BIT
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue