From nobody Tue Feb 10 03:44:42 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+85134+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+85134+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.alibaba.com ARC-Seal: i=1; a=rsa-sha256; t=1640099223; cv=none; d=zohomail.com; s=zohoarc; b=jHmkk07CSt6GCBbiUzUsrCzOMTpoMeFFLZRQvZIr/O/9pPLL/CkcX8o+ngbvkRaXTE6QtTjupwVVP3VuJRNp651X9vlWMWlnAxJ0T8L2vODg9MC5RyX0YxDajLcv4tdJLNHoiRxnrjB0pZXJY+JBO42G8bNhh6nIyKEPkRhT/yY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1640099223; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=x7QygaWLtp2+AVqhPydLee2UkExIeWSBNouvr0oZJM8=; b=bKNfEsbNJPWF3lmiutStw0RY1Nqt/A2fer1Ps+/mwvU5d7DCsr53MsPfUg3jqAp7Zuv0GJil5rmbYcJ6eCl0Uh70MDm2PTWbBTeeIrXjxA6W4w0U+wn6Ph8bFmvlJS25qOyu2Pizk6swk06PCVVvBLIH1t8U/F3Qmqv+TdW+ZVg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+85134+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1640099223826617.6705860928665; Tue, 21 Dec 2021 07:07:03 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id NVO1YY1788612xZWcGH2fxfp; Tue, 21 Dec 2021 07:07:03 -0800 X-Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by mx.groups.io with SMTP id smtpd.web10.6652.1640099221912575994 for ; Tue, 21 Dec 2021 07:07:02 -0800 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=huangming@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0V.LLCl-_1640099181; X-Received: from 842effaa37a8.tbsite.net(mailfrom:huangming@linux.alibaba.com fp:SMTPD_---0V.LLCl-_1640099181) by smtp.aliyun-inc.com(127.0.0.1); Tue, 21 Dec 2021 23:06:57 +0800 From: "Ming Huang" To: devel@edk2.groups.io, sami.mujawar@arm.com, ardb+tianocore@kernel.org, jiewen.yao@intel.com, supreeth.venkatesh@arm.com Cc: ming.huang-@outlook.com, Ming Huang Subject: [edk2-devel] [PATCH edk2 v2 2/3] StandaloneMmPkg: Replace DEBUG_INFO with DEBUG_ERROR Date: Tue, 21 Dec 2021 23:06:17 +0800 Message-Id: <20211221150618.113944-3-huangming@linux.alibaba.com> In-Reply-To: <20211221150618.113944-1-huangming@linux.alibaba.com> References: <20211221150618.113944-1-huangming@linux.alibaba.com> Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,huangming@linux.alibaba.com X-Gm-Message-State: f7Zo6rNNgbtAqHBhQW3L6NdLx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1640099223; bh=TvemwdSdQOIg2amUOEotI5sVv0bSAYheX4/YF5kBNig=; h=Cc:Date:From:Reply-To:Subject:To; b=R10WEHCXhu2b3YgLuRB+7proEma3wAhThQ68pZvc7nUBr9WUlpv2DOQll/X7AXhleZg lUjFBNR/oVcQ1cyo9lBafK4WSg6KpIlXdPoVcMYbS7eKWF0WHfYf2SfqZXjpU6Ntjz+m9 hyD6k6gJstLgQq+eW2ANVbz7OXK1x7E2JzI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1640100126314100002 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" DEBUG_ERROR should be used in error branch. Signed-off-by: Ming Huang --- StandaloneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c | 6 +++--- StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/StandaloneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c b/Standa= loneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c index 165d696f99..5dfaf9d751 100644 --- a/StandaloneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c +++ b/StandaloneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c @@ -95,7 +95,7 @@ PiMmStandaloneArmTfCpuDriverEntry ( // if ((ARM_SMC_ID_MM_COMMUNICATE !=3D EventId) && (ARM_SVC_ID_FFA_MSG_SEND_DIRECT_REQ !=3D EventId)) { - DEBUG ((DEBUG_INFO, "UnRecognized Event - 0x%x\n", EventId)); + DEBUG ((DEBUG_ERROR, "UnRecognized Event - 0x%x\n", EventId)); return EFI_INVALID_PARAMETER; } =20 @@ -133,7 +133,7 @@ PiMmStandaloneArmTfCpuDriverEntry ( ); =20 if (Status !=3D 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; } =20 @@ -156,7 +156,7 @@ PiMmStandaloneArmTfCpuDriverEntry ( mMmst->CpuSaveState =3D NULL; =20 if (mMmEntryPoint =3D=3D NULL) { - DEBUG ((DEBUG_INFO, "Mm Entry point Not Found\n")); + DEBUG ((DEBUG_ERROR, "Mm Entry point Not Found\n")); return EFI_UNSUPPORTED; } =20 diff --git a/StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c b/St= andaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c index 10097f792f..fd9c59b4da 100644 --- a/StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c +++ b/StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c @@ -143,7 +143,7 @@ StandaloneMmCpuInitialize ( =20 // Bail out if the Hoblist could not be found if (Index >=3D 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; } =20 @@ -158,7 +158,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; } =20 @@ -176,7 +176,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; } =20 @@ -195,7 +195,7 @@ StandaloneMmCpuInitialize ( (VOID **) &MpInformationHobData ); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_INFO, "MpInformationHob extraction failed - 0x%x\n", Sta= tus)); + DEBUG ((DEBUG_ERROR, "MpInformationHob extraction failed - 0x%x\n", St= atus)); return Status; } =20 @@ -213,7 +213,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; } =20 @@ -243,7 +243,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; } return Status; --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#85134): https://edk2.groups.io/g/devel/message/85134 Mute This Topic: https://groups.io/mt/87878746/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-