From 7c2a6033c149625482a18cd51b65513c8fb8fe15 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Sun, 5 Dec 2021 14:34:05 -0800 Subject: UefiCpuPkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END() REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3767 Update use of DEBUG_CODE(Expression) if Expression is a complex code block with if/while/for/case statements that use {}. Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael Kubacki Signed-off-by: Michael D Kinney Reviewed-by: Ray Ni --- UefiCpuPkg/CpuDxe/CpuDxe.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'UefiCpuPkg/CpuDxe') diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c index 52cc26eaaf..efa0bc3308 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.c +++ b/UefiCpuPkg/CpuDxe/CpuDxe.c @@ -1071,7 +1071,7 @@ AddMemoryMappedIoSpace ( } } - DEBUG_CODE ( + DEBUG_CODE_BEGIN (); // // Make sure there are adjacent descriptors covering [Base, Base + Length). // It is possible that they have not been merged; merging can be prevented @@ -1089,7 +1089,7 @@ AddMemoryMappedIoSpace ( ASSERT (Descriptor.GcdMemoryType == EfiGcdMemoryTypeMemoryMappedIo); ASSERT ((Descriptor.Capabilities & Capabilities) == Capabilities); } - ); + DEBUG_CODE_END (); FreeMemorySpaceMap: FreePool (MemorySpaceMap); @@ -1212,4 +1212,3 @@ InitializeCpu ( return Status; } - -- cgit v1.2.3