REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2535
The UNIT_TEST_STATUS and FAILURE_TYPE have used 0 as status, so use 0 as
unknown is confused, remove it from array enumeration but keep it
location in the array.
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Signed-off-by: Guomin Jiang <guomin.jiang@intel.com>
Reviewed-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Bret Barkelew <bret.barkelew@microsoft.com>
{\r
UINTN Index;\r
\r
- for (Index = 0; Index < ARRAY_SIZE (mStatusStrings); Index++) {\r
+ for (Index = 0; Index < ARRAY_SIZE (mStatusStrings) - 1; Index++) {\r
if (mStatusStrings[Index].Status == Status) {\r
//\r
// Return string from matching entry\r
{\r
UINTN Index;\r
\r
- for (Index = 0; Index < ARRAY_SIZE (mFailureTypeStrings); Index++) {\r
+ for (Index = 0; Index < ARRAY_SIZE (mFailureTypeStrings) - 1; Index++) {\r
if (mFailureTypeStrings[Index].Type == Failure) {\r
//\r
// Return string from matching entry\r