]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c
MdeModulePkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / PciHostBridgeDxe / PciHostBridge.c
index a71518652d7855f3b4f4d405cb4a9c553b190ad9..5c8f0f46a18402836b35ac2de9f4d33e03972961 100644 (file)
@@ -167,7 +167,7 @@ AddIoSpace (
     }\r
   }\r
 \r
-  DEBUG_CODE (\r
+    DEBUG_CODE_BEGIN ();\r
     //\r
     // Make sure there are adjacent descriptors covering [Base, Base + Length).\r
     // It is possible that they have not been merged; merging can be prevented\r
@@ -184,7 +184,7 @@ AddIoSpace (
       ASSERT_EFI_ERROR (CheckStatus);\r
       ASSERT (Descriptor.GcdIoType == EfiGcdIoTypeIo);\r
     }\r
-    );\r
+    DEBUG_CODE_END ();\r
 \r
 FreeIoSpaceMap:\r
   FreePool (IoSpaceMap);\r
@@ -315,7 +315,7 @@ AddMemoryMappedIoSpace (
     }\r
   }\r
 \r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     //\r
     // Make sure there are adjacent descriptors covering [Base, Base + Length).\r
     // It is possible that they have not been merged; merging can be prevented\r
@@ -333,7 +333,7 @@ AddMemoryMappedIoSpace (
       ASSERT (Descriptor.GcdMemoryType == EfiGcdMemoryTypeMemoryMappedIo);\r
       ASSERT ((Descriptor.Capabilities & Capabilities) == Capabilities);\r
     }\r
-    );\r
+  DEBUG_CODE_END ();\r
 \r
 FreeMemorySpaceMap:\r
   FreePool (MemorySpaceMap);\r