mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcLog.c: Correct SerialPortWrite return value handling
This commit is contained in:
parent
c7260a8566
commit
e4ca954f33
@ -208,13 +208,10 @@ OcLogAddEntry (
|
||||
// Write to serial port.
|
||||
//
|
||||
if ((OcLog->Options & OC_LOG_SERIAL) != 0) {
|
||||
Status = SerialPortWrite ((UINT8 *) Private->TimingTxt, TimingLength);
|
||||
if (Status == EFI_NO_MAPPING) {
|
||||
//
|
||||
// Disable serial port option.
|
||||
//
|
||||
OcLog->Options &= ~OC_LOG_SERIAL;
|
||||
}
|
||||
//
|
||||
// No return value check - SerialPortWrite either stalls or falsely return all bytes written if no serial available.
|
||||
//
|
||||
SerialPortWrite ((UINT8 *) Private->TimingTxt, TimingLength);
|
||||
SerialPortWrite ((UINT8 *) Private->LineBuffer, LineLength);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user