提交 76b59df4 编写于 作者: V vit9696

OcAcpiLib: Improve debug logging when applying ACPI patches

closes acidanthera/bugtracker#2140
上级 eb1347c7
OpenCore Changelog
==================
#### v0.8.9
- Improved debug logging when applying ACPI patches
#### v0.8.8
- Updated underlying EDK II package to edk2-stable202211
- Updated AppleKeyboardLayouts.txt from macOS 13.1
......
......@@ -1255,8 +1255,6 @@ AcpiApplyPatch (
UINT32 ReplaceLimit;
UINT32 TablePrintSignature;
DEBUG ((DEBUG_INFO, "OCA: Applying %u byte ACPI patch skip %u, count %u\n", Patch->Size, Patch->Skip, Patch->Count));
if ( (Context->Dsdt != NULL)
&& ((Patch->TableSignature == 0) || (Patch->TableSignature == EFI_ACPI_6_2_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE))
&& ((Patch->TableLength == 0) || (Context->Dsdt->Length == Patch->TableLength))
......
......@@ -188,6 +188,15 @@ OcAcpiPatchTables (
Patch.TableLength = UserPatch->TableLength;
CopyMem (&Patch.OemTableId, UserPatch->OemTableId, sizeof (UserPatch->OemTableId));
DEBUG ((
DEBUG_INFO,
"OC: Applying %u byte ACPI patch patch at %u, skip %u, count %u\n",
Patch.Size,
(UINT32)Index,
Patch.Skip,
Patch.Count
));
Status = AcpiApplyPatch (Context, &Patch);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_WARN, "OC: ACPI patcher failed %u - %r\n", Index, Status));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册