X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=DuetPkg%2FDxeIpl%2FDebug.c;h=26f7ce0037c2be3779da1ff1a072f38f76189a52;hb=e83c843bbdc78e01adefe209e57afc756ca66a00;hp=45d3a414111d8fc974f06370fc7708d37e796c8e;hpb=18b84857507fc28b8fbfbcd434f9c48bbcaf4ac5;p=mirror_edk2.git diff --git a/DuetPkg/DxeIpl/Debug.c b/DuetPkg/DxeIpl/Debug.c index 45d3a41411..26f7ce0037 100644 --- a/DuetPkg/DxeIpl/Debug.c +++ b/DuetPkg/DxeIpl/Debug.c @@ -19,6 +19,7 @@ Revision History: **/ #include "DxeIpl.h" +#include "SerialStatusCode.h" UINT8 *mCursor; UINT8 mHeaderIndex = 10; @@ -57,9 +58,9 @@ PrintValue ( UINT8 Char; for (Index = 0; Index < 8; Index++) { - Char = (UINT8)((Value >> ((7 - Index) * 4)) & 0x0f) + '0'; + Char = (UINT8)(((Value >> ((7 - Index) * 4)) & 0x0f) + '0'); if (Char > '9') { - Char = Char - '0' - 10 + 'A'; + Char = (UINT8) (Char - '0' - 10 + 'A'); } *mCursor = Char; mCursor += 2; @@ -92,5 +93,10 @@ PrintString ( mCursor += 2; } } + + // + // All information also output to serial port. + // + DebugSerialPrint ((CHAR8*)String); }