提交 da1577b2 编写于 作者: V vit9696

OcDebugLogLib: Do not attempt file logging at high TPL

上级 cf05a426
......@@ -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
);
}
}
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册