REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4514
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. Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang....@intel.com> Signed-off-by: Nate DeSimone <nathaniel.l.desim...@intel.com> --- MdePkg/Library/BasePrintLib/PrintLibInternal.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MdePkg/Library/BasePrintLib/PrintLibInternal.c b/MdePkg/Library/BasePrintLib/PrintLibInternal.c index 42b598a432..c666c6614c 100644 --- a/MdePkg/Library/BasePrintLib/PrintLibInternal.c +++ b/MdePkg/Library/BasePrintLib/PrintLibInternal.c @@ -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 }; /** -- 2.30.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107407): https://edk2.groups.io/g/devel/message/107407 Mute This Topic: https://groups.io/mt/100468027/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-