From: Ming Huang Date: Fri, 31 Dec 2021 11:06:22 +0000 (+0800) Subject: StandaloneMmPkg: Replace DEBUG_INFO with DEBUG_ERROR X-Git-Tag: edk2-stable202208~123 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=31d3eeb103eaf0721c4955988bef3f2264b05ca0 StandaloneMmPkg: Replace DEBUG_INFO with DEBUG_ERROR DEBUG_ERROR should be used in error branch. Signed-off-by: Ming Huang Reviewed-by: Sami Mujawar --- diff --git a/StandaloneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c b/StandaloneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c index 1ac15ddda2..556fd21451 100644 --- a/StandaloneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c +++ b/StandaloneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c @@ -95,7 +95,7 @@ PiMmStandaloneArmTfCpuDriverEntry ( if ((ARM_SMC_ID_MM_COMMUNICATE != EventId) && (ARM_SVC_ID_FFA_MSG_SEND_DIRECT_REQ != EventId)) { - DEBUG ((DEBUG_INFO, "UnRecognized Event - 0x%x\n", EventId)); + DEBUG ((DEBUG_ERROR, "UnRecognized Event - 0x%x\n", EventId)); return EFI_INVALID_PARAMETER; } @@ -135,7 +135,7 @@ PiMmStandaloneArmTfCpuDriverEntry ( ); if (Status != EFI_SUCCESS) { - DEBUG ((DEBUG_INFO, "Mem alloc failed - 0x%x\n", EventId)); + DEBUG ((DEBUG_ERROR, "Mem alloc failed - 0x%x\n", EventId)); return EFI_OUT_OF_RESOURCES; } @@ -158,7 +158,7 @@ PiMmStandaloneArmTfCpuDriverEntry ( mMmst->CpuSaveState = NULL; if (mMmEntryPoint == NULL) { - DEBUG ((DEBUG_INFO, "Mm Entry point Not Found\n")); + DEBUG ((DEBUG_ERROR, "Mm Entry point Not Found\n")); return EFI_UNSUPPORTED; } diff --git a/StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c b/StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c index 24dff82268..d8bfba263a 100644 --- a/StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c +++ b/StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c @@ -142,7 +142,7 @@ StandaloneMmCpuInitialize ( // Bail out if the Hoblist could not be found if (Index >= mMmst->NumberOfTableEntries) { - DEBUG ((DEBUG_INFO, "Hoblist not found - 0x%x\n", Index)); + DEBUG ((DEBUG_ERROR, "Hoblist not found - 0x%x\n", Index)); return EFI_OUT_OF_RESOURCES; } @@ -157,7 +157,7 @@ StandaloneMmCpuInitialize ( (VOID **)&CpuDriverEntryPointDesc ); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_INFO, "ArmTfCpuDriverEpDesc HOB data extraction failed - 0x%x\n", Status)); + DEBUG ((DEBUG_ERROR, "ArmTfCpuDriverEpDesc HOB data extraction failed - 0x%x\n", Status)); return Status; } @@ -178,7 +178,7 @@ StandaloneMmCpuInitialize ( (VOID **)&NsCommBufMmramRange ); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_INFO, "NsCommBufMmramRange HOB data extraction failed - 0x%x\n", Status)); + DEBUG ((DEBUG_ERROR, "NsCommBufMmramRange HOB data extraction failed - 0x%x\n", Status)); return Status; } @@ -197,7 +197,7 @@ StandaloneMmCpuInitialize ( (VOID **)&MpInformationHobData ); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_INFO, "MpInformationHob extraction failed - 0x%x\n", Status)); + DEBUG ((DEBUG_ERROR, "MpInformationHob extraction failed - 0x%x\n", Status)); return Status; } @@ -215,7 +215,7 @@ StandaloneMmCpuInitialize ( (VOID **)&mMpInformationHobData ); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_INFO, "mMpInformationHobData mem alloc failed - 0x%x\n", Status)); + DEBUG ((DEBUG_ERROR, "mMpInformationHobData mem alloc failed - 0x%x\n", Status)); return Status; } @@ -251,7 +251,7 @@ StandaloneMmCpuInitialize ( (VOID **)&PerCpuGuidedEventContext ); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_INFO, "PerCpuGuidedEventContext mem alloc failed - 0x%x\n", Status)); + DEBUG ((DEBUG_ERROR, "PerCpuGuidedEventContext mem alloc failed - 0x%x\n", Status)); return Status; }