/** @file\r
Serial I/O status code reporting worker.\r
\r
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
**/\r
\r
#include "StatusCodePei.h"\r
CharCount = AsciiSPrint (\r
Buffer,\r
sizeof (Buffer),\r
- "ERROR: C%x:V%x I%x",\r
+ "ERROR: C%08x:V%08x I%x",\r
CodeType,\r
Value,\r
Instance\r
CharCount = AsciiSPrint (\r
Buffer,\r
sizeof (Buffer),\r
- "PROGRESS CODE: V%x I%x\n\r",\r
+ "PROGRESS CODE: V%08x I%x\n\r",\r
Value,\r
Instance\r
);\r
- } else if (CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&\r
+ } else if (Data != NULL &&\r
+ CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&\r
((EFI_STATUS_CODE_STRING_DATA *) Data)->StringType == EfiStringAscii) {\r
//\r
// EFI_STATUS_CODE_STRING_DATA\r
CharCount = AsciiSPrint (\r
Buffer,\r
sizeof (Buffer),\r
- "Undefined: C%x:V%x I%x\n\r",\r
+ "Undefined: C%08x:V%08x I%x\n\r",\r
CodeType,\r
Value,\r
Instance\r