]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
The EFI_IMAGE_REL_BASED_DIR64 type has been in switch for all common relocation type...
[mirror_edk2.git] / MdePkg / Library / PeiDxeDebugLibReportStatusCode / DebugLib.c
index b06a75660f490457ecd64f6f55928296f34ca052..53f206332419309a804b581818bdf913438466b2 100644 (file)
@@ -70,17 +70,17 @@ DebugPrint (
   //\r
   VA_START (Marker, Format);\r
   for (Index = 0, ArgumentPointer = (UINT64 *)(DebugInfo + 1); Index < 12; Index++, ArgumentPointer++) {\r
-    *ArgumentPointer = VA_ARG (Marker, UINT64);\r
+    WriteUnaligned64(ArgumentPointer, VA_ARG (Marker, UINT64));\r
   }\r
   VA_END (Marker);\r
   AsciiStrCpy ((CHAR8 *)ArgumentPointer, Format);\r
 \r
-  //\r
-  //\r
-  //\r
-  REPORT_STATUS_CODE_WITH_EXTENDED_DATA (\r
+  REPORT_STATUS_CODE_EX (\r
     EFI_DEBUG_CODE,\r
     (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_DC_UNSPECIFIED),\r
+    0,\r
+    NULL,\r
+    &gEfiStatusCodeDataTypeDebugGuid,\r
     DebugInfo,\r
     TotalSize\r
     );\r
@@ -142,7 +142,7 @@ DebugAssert (
     //\r
     // Copy Ascii Description \r
     //\r
-    AsciiStrCpy (Temp + AsciiStrLen(FileName) + 1, Description);\r
+    AsciiStrCpy (Temp + AsciiStrLen (FileName) + 1, Description);\r
 \r
     REPORT_STATUS_CODE_WITH_EXTENDED_DATA (\r
       (EFI_ERROR_CODE | EFI_ERROR_UNRECOVERED),\r
@@ -172,7 +172,7 @@ DebugAssert (
 \r
   If Buffer is NULL, then ASSERT().\r
 \r
-  If Length is greater than (MAX_ADDRESS \96 Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT(). \r
 \r
   @param   Buffer  Pointer to the target buffer to fill with PcdDebugClearMemoryValue.\r
   @param   Length  Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. \r