]> git.proxmox.com Git - mirror_edk2.git/commitdiff
StandaloneMmPkg: Replace DEBUG_INFO with DEBUG_ERROR
authorMing Huang <huangming@linux.alibaba.com>
Fri, 31 Dec 2021 11:06:22 +0000 (19:06 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Jul 2022 10:20:06 +0000 (10:20 +0000)
DEBUG_ERROR should be used in error branch.

Signed-off-by: Ming Huang <huangming@linux.alibaba.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
StandaloneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c
StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c

index 1ac15ddda26b3200c1cbcbaa92fa0bcc0714afea..556fd21451dab7ac3a2d9d4cfa51b001aa92faec 100644 (file)
@@ -95,7 +95,7 @@ PiMmStandaloneArmTfCpuDriverEntry (
   if ((ARM_SMC_ID_MM_COMMUNICATE != EventId) &&\r
       (ARM_SVC_ID_FFA_MSG_SEND_DIRECT_REQ != EventId))\r
   {\r
-    DEBUG ((DEBUG_INFO, "UnRecognized Event - 0x%x\n", EventId));\r
+    DEBUG ((DEBUG_ERROR, "UnRecognized Event - 0x%x\n", EventId));\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
@@ -135,7 +135,7 @@ PiMmStandaloneArmTfCpuDriverEntry (
                     );\r
 \r
   if (Status != EFI_SUCCESS) {\r
-    DEBUG ((DEBUG_INFO, "Mem alloc failed - 0x%x\n", EventId));\r
+    DEBUG ((DEBUG_ERROR, "Mem alloc failed - 0x%x\n", EventId));\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
@@ -158,7 +158,7 @@ PiMmStandaloneArmTfCpuDriverEntry (
   mMmst->CpuSaveState          = NULL;\r
 \r
   if (mMmEntryPoint == NULL) {\r
-    DEBUG ((DEBUG_INFO, "Mm Entry point Not Found\n"));\r
+    DEBUG ((DEBUG_ERROR, "Mm Entry point Not Found\n"));\r
     return EFI_UNSUPPORTED;\r
   }\r
 \r
index 24dff82268b330d63436cb208f0e94f33048d2c8..d8bfba263ae26b6da683d4297ab41d0142db7547 100644 (file)
@@ -142,7 +142,7 @@ StandaloneMmCpuInitialize (
 \r
   // Bail out if the Hoblist could not be found\r
   if (Index >= mMmst->NumberOfTableEntries) {\r
-    DEBUG ((DEBUG_INFO, "Hoblist not found - 0x%x\n", Index));\r
+    DEBUG ((DEBUG_ERROR, "Hoblist not found - 0x%x\n", Index));\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
@@ -157,7 +157,7 @@ StandaloneMmCpuInitialize (
              (VOID **)&CpuDriverEntryPointDesc\r
              );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((DEBUG_INFO, "ArmTfCpuDriverEpDesc HOB data extraction failed - 0x%x\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "ArmTfCpuDriverEpDesc HOB data extraction failed - 0x%x\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -178,7 +178,7 @@ StandaloneMmCpuInitialize (
              (VOID **)&NsCommBufMmramRange\r
              );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((DEBUG_INFO, "NsCommBufMmramRange HOB data extraction failed - 0x%x\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "NsCommBufMmramRange HOB data extraction failed - 0x%x\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -197,7 +197,7 @@ StandaloneMmCpuInitialize (
              (VOID **)&MpInformationHobData\r
              );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((DEBUG_INFO, "MpInformationHob extraction failed - 0x%x\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "MpInformationHob extraction failed - 0x%x\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -215,7 +215,7 @@ StandaloneMmCpuInitialize (
                     (VOID **)&mMpInformationHobData\r
                     );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((DEBUG_INFO, "mMpInformationHobData mem alloc failed - 0x%x\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "mMpInformationHobData mem alloc failed - 0x%x\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -251,7 +251,7 @@ StandaloneMmCpuInitialize (
                     (VOID **)&PerCpuGuidedEventContext\r
                     );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((DEBUG_INFO, "PerCpuGuidedEventContext mem alloc failed - 0x%x\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "PerCpuGuidedEventContext mem alloc failed - 0x%x\n", Status));\r
     return Status;\r
   }\r
 \r