]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/DxeIpl/Debug.c
Needed to fix defaulting / to be \ as it is required by EFI Simple File System.
[mirror_edk2.git] / DuetPkg / DxeIpl / Debug.c
index 45d3a414111d8fc974f06370fc7708d37e796c8e..26f7ce0037c2be3779da1ff1a072f38f76189a52 100644 (file)
@@ -19,6 +19,7 @@ Revision History:
 **/\r
 \r
 #include "DxeIpl.h"\r
+#include "SerialStatusCode.h"\r
 \r
 UINT8 *mCursor;\r
 UINT8 mHeaderIndex = 10;\r
@@ -57,9 +58,9 @@ PrintValue (
   UINT8  Char;\r
 \r
   for (Index = 0; Index < 8; Index++) {\r
-    Char = (UINT8)((Value >> ((7 - Index) * 4)) & 0x0f) + '0';\r
+    Char = (UINT8)(((Value >> ((7 - Index) * 4)) & 0x0f) + '0');\r
     if (Char > '9') {\r
-      Char = Char - '0' - 10 + 'A';\r
+      Char = (UINT8) (Char - '0' - 10 + 'A');\r
     }\r
     *mCursor = Char;\r
     mCursor += 2;\r
@@ -92,5 +93,10 @@ PrintString (
       mCursor += 2;\r
     }\r
   }\r
+  \r
+  //\r
+  // All information also output to serial port.\r
+  //\r
+  DebugSerialPrint ((CHAR8*)String);\r
 }\r
 \r