Skip to content

Commit

Permalink
MinPlatformPkg/Test/TestPointCheckLib: Correctly print memory map entry
Browse files Browse the repository at this point in the history
In the case that there are too many EfiRuntimeServicesData entries, this
was incorrectly printing the number of EfiRuntimeServicesCode entries.

Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Eric Dong <eric.dong@intel.com>
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
  • Loading branch information
benjamindoron authored and nate-desimone committed Aug 13, 2021
1 parent cd4e6b7 commit c9fff3e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -135,7 +135,7 @@ TestPointCheckUefiMemoryMapEntry (
DEBUG ((DEBUG_ERROR, "EfiRuntimeServicesCode entry - %d\n", EntryCount[EfiRuntimeServicesCode]));
}
if (EntryCount[EfiRuntimeServicesData] > 1) {
DEBUG ((DEBUG_ERROR, "EfiRuntimeServicesData entry - %d\n", EntryCount[EfiRuntimeServicesCode]));
DEBUG ((DEBUG_ERROR, "EfiRuntimeServicesData entry - %d\n", EntryCount[EfiRuntimeServicesData]));
}
if (EntryCount[EfiACPIMemoryNVS] > 1) {
DEBUG ((DEBUG_ERROR, "EfiACPIMemoryNVS entry - %d\n", EntryCount[EfiACPIMemoryNVS]));
Expand Down Expand Up @@ -300,4 +300,4 @@ TestPointCheckUefiMemoryMap (
Done:
DEBUG ((DEBUG_INFO, "==== TestPointCheckUefiMemoryMap - Exit\n"));
return Status;
}
}

0 comments on commit c9fff3e

Please sign in to comment.