]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
MdeModulePkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / Variable.c
index 5115bcf81696cddf28776482c6b4226bb513e45a..adb3e9720796f93f8913c7ee932ac469a8bc5138 100644 (file)
@@ -280,7 +280,7 @@ RecordVarErrorFlag (
   VAR_ERROR_FLAG            *VarErrFlag;\r
   VAR_ERROR_FLAG            TempFlag;\r
 \r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     DEBUG ((DEBUG_ERROR, "RecordVarErrorFlag (0x%02x) %s:%g - 0x%08x - 0x%x\n", Flag, VariableName, VendorGuid, Attributes, VariableSize));\r
     if (Flag == VAR_ERROR_FLAG_SYSTEM_ERROR) {\r
       if (AtRuntime ()) {\r
@@ -291,7 +291,7 @@ RecordVarErrorFlag (
     } else {\r
       DEBUG ((DEBUG_ERROR, "CommonMaxUserVariableSpace = 0x%x - CommonUserVariableTotalSize = 0x%x\n", mVariableModuleGlobal->CommonMaxUserVariableSpace, mVariableModuleGlobal->CommonUserVariableTotalSize));\r
     }\r
-  );\r
+  DEBUG_CODE_END ();\r
 \r
   if (!mEndOfDxe) {\r
     //\r
@@ -3498,7 +3498,7 @@ GetHobVariableStore (
   //\r
   // Make sure there is no more than one Variable HOB.\r
   //\r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     GuidHob = GetFirstGuidHob (&gEfiAuthenticatedVariableGuid);\r
     if (GuidHob != NULL) {\r
       if ((GetNextGuidHob (&gEfiAuthenticatedVariableGuid, GET_NEXT_HOB (GuidHob)) != NULL)) {\r
@@ -3517,7 +3517,7 @@ GetHobVariableStore (
         }\r
       }\r
     }\r
-  );\r
+  DEBUG_CODE_END ();\r
 \r
   //\r
   // Combinations supported:\r