]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/DxeIpl/SerialStatusCode.c
synchronize the file with the MDE_Library_Spec and fixed some typo.
[mirror_edk2.git] / DuetPkg / DxeIpl / SerialStatusCode.c
index 20a11d2c54a61fd1fc7cf522e29e1ffcf85c652e..1112273373a6cf95e8e1ec5c3c55ec960c1c18fb 100644 (file)
@@ -1,4 +1,4 @@
-/*++\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -16,7 +16,7 @@ Abstract:
 \r
 Revision History:\r
 \r
---*/\r
+**/\r
 \r
 #include "SerialStatusCode.h"\r
 \r
@@ -656,7 +656,7 @@ Returns:
 \r
 VOID\r
 DebugSerialPrint (\r
-  IN UINT8    *OutputString\r
+  IN CHAR8    *OutputString\r
   )\r
 /*++\r
 \r
@@ -720,7 +720,8 @@ Returns:
 \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
@@ -733,7 +734,8 @@ Returns:
       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