mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcDebugLogLib: Do not attempt file logging at high TPL
This commit is contained in:
parent
cf05a42605
commit
da1577b24a
@ -291,12 +291,14 @@ OcLogAddEntry (
|
||||
// I know it is slow, but fixed size write is more reliable with broken FAT32 driver.
|
||||
//
|
||||
if ((OcLog->Options & OC_LOG_FILE) != 0 && OcLog->FileSystem != NULL) {
|
||||
SetFileData (
|
||||
OcLog->FileSystem,
|
||||
OcLog->FilePath,
|
||||
Private->AsciiBuffer,
|
||||
(UINT32) Private->AsciiBufferSize
|
||||
);
|
||||
if (EfiGetCurrentTpl () <= TPL_CALLBACK) {
|
||||
SetFileData (
|
||||
OcLog->FileSystem,
|
||||
OcLog->FilePath,
|
||||
Private->AsciiBuffer,
|
||||
(UINT32) Private->AsciiBufferSize
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user