From 2dae1c1007ac7563408520677f1a0c429acc002d Mon Sep 17 00:00:00 2001 From: Goldfish64 Date: Sun, 4 Apr 2021 22:23:41 -0500 Subject: [PATCH] OcAcpiLib: Only print RSDP normalization message if modified --- Library/OcAcpiLib/OcAcpiLib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/OcAcpiLib/OcAcpiLib.c b/Library/OcAcpiLib/OcAcpiLib.c index fbbc0708ad9..67c4f5cbe7c 100755 --- a/Library/OcAcpiLib/OcAcpiLib.c +++ b/Library/OcAcpiLib/OcAcpiLib.c @@ -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)) {