Check for OVMF and prevent doubled messages on serial console
ci/woodpecker/push/build Pipeline was successful
Details
ci/woodpecker/push/build Pipeline was successful
Details
This commit is contained in:
parent
67acacf528
commit
bf9171b66a
|
@ -227,11 +227,15 @@ BlEfiPrint(IN PUINT16 Format,
|
|||
/* Format and print the string to the stdout */
|
||||
BlStringPrint(BlConsolePutChar, Format, Arguments);
|
||||
|
||||
/* Check if EFI serial port is fully initialized */
|
||||
if(EfiSerialPort.Flags & COMPORT_FLAG_INIT)
|
||||
/* Print to serial console only if not running under OVMF */
|
||||
if(RtlWideStringCompare(EfiSystemTable->FirmwareVendor, L"EDK II", 6) != 0)
|
||||
{
|
||||
/* Format and print the string to the serial console */
|
||||
BlStringPrint(BlComPortPutChar, Format, Arguments);
|
||||
/* Check if EFI serial port is fully initialized */
|
||||
if(EfiSerialPort.Flags & COMPORT_FLAG_INIT)
|
||||
{
|
||||
/* Format and print the string to the serial console */
|
||||
BlStringPrint(BlComPortPutChar, Format, Arguments);
|
||||
}
|
||||
}
|
||||
|
||||
/* Clean up the va_list */
|
||||
|
|
Loading…
Reference in New Issue