mirror of https://github.com/acidanthera/audk.git
StandaloneMmPkg: Replace DEBUG_INFO with DEBUG_ERROR
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>
This commit is contained in:
parent
9ab18fec82
commit
31d3eeb103
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue