summaryrefslogtreecommitdiff
path: root/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryMap.c
diff options
context:
space:
mode:
authorJiewen Yao <jiewen.yao@intel.com>2017-11-20 14:08:32 +0800
committerJiewen Yao <jiewen.yao@intel.com>2017-11-28 20:50:46 +0800
commit471ddafeea4fbd1599e8b0293499e7ae18d23983 (patch)
tree031ab432f1085a465334e47d0c216f5a42fab1d4 /Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryMap.c
parent77fbc325b3bc5b45de7f5a351916283b5f483699 (diff)
downloadedk2-platforms-471ddafeea4fbd1599e8b0293499e7ae18d23983.tar.xz
Add GCD test for ACPI resource reporting.
Cc: Michael A Kubacki <michael.a.kubacki@intel.com> Cc: Amy Chan <amy.chan@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Brett Wang <brett.wang@intel.com> Cc: Daocheng Bu <daocheng.bu@intel.com> Cc: Isaac W Oram <isaac.w.oram@intel.com> Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Amy Chan <amy.chan@intel.com>
Diffstat (limited to 'Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryMap.c')
-rw-r--r--Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryMap.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryMap.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryMap.c
index 67b8108139..4e7640183a 100644
--- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryMap.c
+++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMemoryMap.c
@@ -163,7 +163,8 @@ VOID
TestPointDumpUefiMemoryMap (
OUT EFI_MEMORY_DESCRIPTOR **UefiMemoryMap, OPTIONAL
OUT UINTN *UefiMemoryMapSize, OPTIONAL
- OUT UINTN *UefiDescriptorSize OPTIONAL
+ OUT UINTN *UefiDescriptorSize, OPTIONAL
+ IN BOOLEAN DumpPrint
)
{
EFI_STATUS Status;
@@ -178,8 +179,10 @@ TestPointDumpUefiMemoryMap (
*UefiMemoryMapSize = 0;
*UefiDescriptorSize = 0;
}
-
- DEBUG ((DEBUG_INFO, "==== TestPointDumpUefiMemoryMap - Enter\n"));
+
+ if (DumpPrint) {
+ DEBUG ((DEBUG_INFO, "==== TestPointDumpUefiMemoryMap - Enter\n"));
+ }
MemoryMapSize = 0;
MemoryMap = NULL;
Status = gBS->GetMemoryMap (
@@ -215,7 +218,9 @@ TestPointDumpUefiMemoryMap (
goto Done ;
}
- TestPointDumpMemoryMap (MemoryMap, MemoryMapSize, DescriptorSize);
+ if (DumpPrint) {
+ TestPointDumpMemoryMap (MemoryMap, MemoryMapSize, DescriptorSize);
+ }
if (UefiMemoryMap != NULL) {
*UefiMemoryMap = AllocateCopyPool (MemoryMapSize, MemoryMap);
@@ -225,7 +230,9 @@ TestPointDumpUefiMemoryMap (
gBS->FreePool (MemoryMap);
Done:
- DEBUG ((DEBUG_INFO, "==== TestPointDumpUefiMemoryMap - Exit\n"));
+ if (DumpPrint) {
+ DEBUG ((DEBUG_INFO, "==== TestPointDumpUefiMemoryMap - Exit\n"));
+ }
return ;
}