Print xtldr debug messages only when debugging enabled
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2022-12-28 23:30:03 +01:00
parent e6a7918bac
commit 6a27ea140b
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -151,8 +151,8 @@ BlDbgPrint(IN PUINT16 Format,
{
VA_LIST Arguments;
/* Check if EFI serial port is fully initialized */
if(EfiSerialPort.Flags & COMPORT_FLAG_INIT)
/* Check if debugging enabled and if EFI serial port is fully initialized */
if(DEBUG && (EfiSerialPort.Flags & COMPORT_FLAG_INIT))
{
/* Initialise the va_list */
VA_START(Arguments, Format);
@ -196,8 +196,8 @@ BlEfiPrint(IN PUINT16 Format,
/* Print to serial console only if not running under OVMF */
if(RtlWideStringCompare(EfiSystemTable->FirmwareVendor, L"EDK II", 6) != 0)
{
/* Check if EFI serial port is fully initialized */
if(EfiSerialPort.Flags & COMPORT_FLAG_INIT)
/* Check if debugging enabled and if EFI serial port is fully initialized */
if(DEBUG && (EfiSerialPort.Flags & COMPORT_FLAG_INIT))
{
/* Format and print the string to the serial console */
BlStringPrint(BlComPortPutChar, Format, Arguments);