Skip to content

Commit

Permalink
OcAcpiLib: Only print RSDP normalization message if modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldfish64 committed Apr 5, 2021
1 parent 9d7b7cc commit 2dae1c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Library/OcAcpiLib/OcAcpiLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,9 @@ AcpiNormalizeHeaders (
EFI_ACPI_COMMON_HEADER *NewTable;
UINT32 TablePrintSignature;

AcpiNormalizeRsdp (Context->Rsdp, Context->Xsdt != NULL);
DEBUG ((DEBUG_INFO, "OCA: Normalized RSDP\n"));
if (AcpiNormalizeRsdp (Context->Rsdp, Context->Xsdt != NULL)) {
DEBUG ((DEBUG_INFO, "OCA: Normalized RSDP\n"));
}

if (Context->Xsdt != NULL) {
if (!AcpiIsTableWritable ((EFI_ACPI_COMMON_HEADER *) Context->Xsdt)) {
Expand Down

0 comments on commit 2dae1c1

Please sign in to comment.