]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.c
UefiCpuPkg: Change use of EFI_D_* to DEBUG_*
[mirror_edk2.git] / UefiCpuPkg / PiSmmCommunication / PiSmmCommunicationSmm.c
index 30f7d57bdd91a2bfa7c8ec02feb95f82802c2cad..4fdea359d822e06fb729add16f1a0c9edf841bcc 100644 (file)
@@ -71,24 +71,24 @@ PiSmmCommunicationHandler (
   EFI_SMM_COMMUNICATE_HEADER       *CommunicateHeader;\r
   EFI_PHYSICAL_ADDRESS             *BufferPtrAddress;\r
 \r
-  DEBUG ((EFI_D_INFO, "PiSmmCommunicationHandler Enter\n"));\r
+  DEBUG ((DEBUG_INFO, "PiSmmCommunicationHandler Enter\n"));\r
 \r
   BufferPtrAddress = (EFI_PHYSICAL_ADDRESS *)(UINTN)mSmmCommunicationContext.BufferPtrAddress;\r
   CommunicateHeader = (EFI_SMM_COMMUNICATE_HEADER *)(UINTN)*BufferPtrAddress;\r
-  DEBUG ((EFI_D_INFO, "PiSmmCommunicationHandler CommunicateHeader - %x\n", CommunicateHeader));\r
+  DEBUG ((DEBUG_INFO, "PiSmmCommunicationHandler CommunicateHeader - %x\n", CommunicateHeader));\r
   if (CommunicateHeader == NULL) {\r
-    DEBUG ((EFI_D_INFO, "PiSmmCommunicationHandler is NULL, needn't to call dispatch function\n"));\r
+    DEBUG ((DEBUG_INFO, "PiSmmCommunicationHandler is NULL, needn't to call dispatch function\n"));\r
     Status = EFI_SUCCESS;\r
   } else {\r
     if (!SmmIsBufferOutsideSmmValid ((UINTN)CommunicateHeader, OFFSET_OF (EFI_SMM_COMMUNICATE_HEADER, Data))) {\r
-      DEBUG ((EFI_D_INFO, "PiSmmCommunicationHandler CommunicateHeader invalid - 0x%x\n", CommunicateHeader));\r
+      DEBUG ((DEBUG_INFO, "PiSmmCommunicationHandler CommunicateHeader invalid - 0x%x\n", CommunicateHeader));\r
       Status = EFI_SUCCESS;\r
       goto Done;\r
     }\r
 \r
     CommSize = (UINTN)CommunicateHeader->MessageLength;\r
     if (!SmmIsBufferOutsideSmmValid ((UINTN)&CommunicateHeader->Data[0], CommSize)) {\r
-      DEBUG ((EFI_D_INFO, "PiSmmCommunicationHandler CommunicateData invalid - 0x%x\n", &CommunicateHeader->Data[0]));\r
+      DEBUG ((DEBUG_INFO, "PiSmmCommunicationHandler CommunicateData invalid - 0x%x\n", &CommunicateHeader->Data[0]));\r
       Status = EFI_SUCCESS;\r
       goto Done;\r
     }\r
@@ -96,7 +96,7 @@ PiSmmCommunicationHandler (
     //\r
     // Call dispatch function\r
     //\r
-    DEBUG ((EFI_D_INFO, "PiSmmCommunicationHandler Data - %x\n", &CommunicateHeader->Data[0]));\r
+    DEBUG ((DEBUG_INFO, "PiSmmCommunicationHandler Data - %x\n", &CommunicateHeader->Data[0]));\r
     Status = gSmst->SmiManage (\r
                       &CommunicateHeader->HeaderGuid,\r
                       NULL,\r
@@ -106,8 +106,8 @@ PiSmmCommunicationHandler (
   }\r
 \r
 Done:\r
-  DEBUG ((EFI_D_INFO, "PiSmmCommunicationHandler %r\n", Status));\r
-  DEBUG ((EFI_D_INFO, "PiSmmCommunicationHandler Exit\n"));\r
+  DEBUG ((DEBUG_INFO, "PiSmmCommunicationHandler %r\n", Status));\r
+  DEBUG ((DEBUG_INFO, "PiSmmCommunicationHandler Exit\n"));\r
 \r
   return (Status == EFI_SUCCESS) ? EFI_SUCCESS : EFI_INTERRUPT_PENDING;\r
 }\r
@@ -190,11 +190,11 @@ PiSmmCommunicationSmmEntryPoint (
                              );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  DEBUG ((EFI_D_INFO, "SmmCommunication SwSmi: %x\n", (UINTN)SmmSwDispatchContext.SwSmiInputValue));\r
+  DEBUG ((DEBUG_INFO, "SmmCommunication SwSmi: %x\n", (UINTN)SmmSwDispatchContext.SwSmiInputValue));\r
 \r
   BufferPtrAddress = AllocateAcpiNvsMemoryBelow4G (sizeof(EFI_PHYSICAL_ADDRESS));\r
   ASSERT (BufferPtrAddress != NULL);\r
-  DEBUG ((EFI_D_INFO, "SmmCommunication BufferPtrAddress: 0x%016lx, BufferPtr: 0x%016lx\n", (EFI_PHYSICAL_ADDRESS)(UINTN)BufferPtrAddress, *BufferPtrAddress));\r
+  DEBUG ((DEBUG_INFO, "SmmCommunication BufferPtrAddress: 0x%016lx, BufferPtr: 0x%016lx\n", (EFI_PHYSICAL_ADDRESS)(UINTN)BufferPtrAddress, *BufferPtrAddress));\r
 \r
   //\r
   // Save context\r