Skip to content

Commit

Permalink
OcMainLib: Print ACPI patch comment alongside index
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaeuser committed Feb 21, 2023
1 parent d90118d commit 419bef6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Library/OcMainLib/OpenCoreAcpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ OcAcpiPatchTables (
|| ((UserPatch->Mask.Size > 0) && (UserPatch->Find.Size != UserPatch->Mask.Size))
|| ((UserPatch->ReplaceMask.Size > 0) && (UserPatch->Replace.Size != UserPatch->ReplaceMask.Size)))
{
DEBUG ((DEBUG_ERROR, "OC: ACPI patch %u is borked\n", Index));
DEBUG ((DEBUG_ERROR, "OC: ACPI patch (%a) at %u is borked\n", UserPatch->Comment, Index));
continue;
}

Expand Down Expand Up @@ -190,16 +190,17 @@ OcAcpiPatchTables (

DEBUG ((
DEBUG_INFO,
"OC: Applying %u byte ACPI patch patch at %u, skip %u, count %u\n",
"OC: Applying %u byte ACPI patch (%a) at %u, skip %u, count %u\n",
Patch.Size,
UserPatch->Comment,
(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));
DEBUG ((DEBUG_WARN, "OC: ACPI patcher failed (%a) at %u - %r\n", UserPatch->Comment, Index, Status));
}
}
}
Expand Down

0 comments on commit 419bef6

Please sign in to comment.