OcDebugLogLib: Do not attempt file logging at high TPL
@@ -291,6 +291,7 @@ 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) {
+ if (EfiGetCurrentTpl () <= TPL_CALLBACK) {
SetFileData (
OcLog->FileSystem,
OcLog->FilePath,
@@ -298,6 +299,7 @@ OcLogAddEntry (
(UINT32) Private->AsciiBufferSize
);
}
+ }
//
// Write to a variable.
