mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcAcpiLib: Improve debug logging when applying ACPI patches
closes acidanthera/bugtracker#2140
This commit is contained in:
parent
eb1347c77c
commit
76b59df43c
@ -1,5 +1,8 @@
|
||||
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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user