-/*++\r
+/** @file\r
\r
Copyright (c) 2006, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
\r
Revision History:\r
\r
---*/\r
+**/\r
\r
#include "SerialStatusCode.h"\r
\r
\r
VOID\r
DebugSerialPrint (\r
- IN UINT8 *OutputString\r
+ IN CHAR8 *OutputString\r
)\r
/*++\r
\r
\r
Buffer[0] = '\0';\r
\r
- if (ReportStatusCodeExtractAssertInfo (CodeType, Value, Data, &Filename, &Description, &LineNumber)) {\r
+ if (Data != NULL && \r
+ ReportStatusCodeExtractAssertInfo (CodeType, Value, Data, &Filename, &Description, &LineNumber)) {\r
//\r
// Processes PEI_ASSERT ()\r
//\r
Description\r
);\r
\r
- } else if (ReportStatusCodeExtractDebugInfo (Data, &ErrorLevel, &Marker, &Format)) {\r
+ } else if (Data != NULL &&\r
+ ReportStatusCodeExtractDebugInfo (Data, &ErrorLevel, &Marker, &Format)) {\r
//\r
// Process PEI_DEBUG () macro to Serial\r
//\r