提交 a3143128 编写于 作者: V vit9696

OpenCoreKernel: Recover broken debugging preferences

上级 117fb862
......@@ -442,7 +442,7 @@
<key>ExposeBootPath</key>
<false/>
<key>Target</key>
<integer>7</integer>
<integer>19</integer>
</dict>
<key>Security</key>
<dict>
......
......@@ -216,21 +216,12 @@ OcMain (
DEBUG ((DEBUG_ERROR, "OC: Failed to load configuration!\n"));
}
#if 1
OcConfigureLogProtocol (
OC_LOG_ENABLE | OC_LOG_CONSOLE | OC_LOG_VARIABLE | OC_LOG_DATA_HUB,
0,
DEBUG_VERBOSE | DEBUG_INFO | DEBUG_WARN | DEBUG_ERROR,
0
);
#else
OcConfigureLogProtocol (
mOpenCoreConfiguration.Misc.Debug.Target,
mOpenCoreConfiguration.Misc.Debug.Delay,
(UINTN) mOpenCoreConfiguration.Misc.Debug.DisplayLevel,
(UINTN) mOpenCoreConfiguration.Misc.Security.HaltLevel
);
#endif
DEBUG ((DEBUG_INFO, "OC: OpenCore is now loading...\n"));
......
......@@ -481,6 +481,14 @@ OcKernelFileOpen (
Status = This->Open (This, NewHandle, FileName, OpenMode, Attributes);
DEBUG ((
DEBUG_VERBOSE,
"Opening file %s with %u mode gave - %r\n",
FileName,
(UINT32) OpenMode,
Status
));
if (EFI_ERROR (Status)) {
return Status;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册