\r
GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 mHexStr[] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};\r
\r
-GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 * CONST mStatusString[] = {\r
+//\r
+// Longest string: RETURN_WARN_BUFFER_TOO_SMALL => 24 characters plus NUL byte\r
+//\r
+GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 mWarningString[][24+1] = {\r
"Success", // RETURN_SUCCESS = 0\r
"Warning Unknown Glyph", // RETURN_WARN_UNKNOWN_GLYPH = 1\r
"Warning Delete Failure", // RETURN_WARN_DELETE_FAILURE = 2\r
"Warning Write Failure", // RETURN_WARN_WRITE_FAILURE = 3\r
"Warning Buffer Too Small", // RETURN_WARN_BUFFER_TOO_SMALL = 4\r
"Warning Stale Data", // RETURN_WARN_STALE_DATA = 5\r
+};\r
+\r
+//\r
+// Longest string: RETURN_INCOMPATIBLE_VERSION => 20 characters plus NUL byte\r
+//\r
+GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 mErrorString[][20+1] = {\r
"Load Error", // RETURN_LOAD_ERROR = 1 | MAX_BIT\r
"Invalid Parameter", // RETURN_INVALID_PARAMETER = 2 | MAX_BIT\r
"Unsupported", // RETURN_UNSUPPORTED = 3 | MAX_BIT\r
//\r
Index = Status & ~MAX_BIT;\r
if (Index > 0 && Index <= ERROR_STATUS_NUMBER) {\r
- ArgumentString = mStatusString [Index + WARNING_STATUS_NUMBER];\r
+ ArgumentString = mErrorString [Index - 1];\r
}\r
} else {\r
Index = Status;\r
if (Index <= WARNING_STATUS_NUMBER) {\r
- ArgumentString = mStatusString [Index];\r
+ ArgumentString = mWarningString [Index];\r
}\r
}\r
if (ArgumentString == ValueBuffer) {\r