]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
MdeModulePkg/DebugLibReportStatusCode: Fix hang if format is too long
[mirror_edk2.git] / MdeModulePkg / Library / PeiDxeDebugLibReportStatusCode / DebugLib.c
index 16a1d206fb7f2d5936e02d572fc978d207e57f3b..96c9b30987298cabdf48025266cee63c54ab0b8d 100644 (file)
@@ -126,6 +126,11 @@ DebugPrint (
   // Here we will process the variable arguments and pack them in this area.\r
   //\r
   VA_START (VaListMarker, Format);\r
+\r
+  //\r
+  // Use the actual format string.\r
+  //\r
+  Format = FormatString;\r
   for (; *Format != '\0'; Format++) {\r
     //\r
     // Only format with prefix % is processed.\r