* [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg/Core: Output status in MMI handler assertion
@ 2024-01-31 4:44 Michael Kubacki
2024-01-31 11:26 ` Laszlo Ersek
0 siblings, 1 reply; 4+ messages in thread
From: Michael Kubacki @ 2024-01-31 4:44 UTC (permalink / raw)
To: devel; +Cc: Ard Biesheuvel, Sami Mujawar, Ray Ni
From: Michael Kubacki <michael.kubacki@microsoft.com>
Currently, if a MMI handler returns an unexpected failure status
code, ASSERT (FALSE) is used. It is more useful to use
ASSERT_EFI_ERROR() which also outputs the status code value.
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
---
StandaloneMmPkg/Core/Mmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/StandaloneMmPkg/Core/Mmi.c b/StandaloneMmPkg/Core/Mmi.c
index 8252355a48eb..0de6fd17fc88 100644
--- a/StandaloneMmPkg/Core/Mmi.c
+++ b/StandaloneMmPkg/Core/Mmi.c
@@ -208,7 +208,7 @@ MmiManage (
//
// Unexpected status code returned.
//
- ASSERT (FALSE);
+ ASSERT_EFI_ERROR (Status);
break;
}
}
--
2.43.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114854): https://edk2.groups.io/g/devel/message/114854
Mute This Topic: https://groups.io/mt/104069723/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg/Core: Output status in MMI handler assertion
2024-01-31 4:44 [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg/Core: Output status in MMI handler assertion Michael Kubacki
@ 2024-01-31 11:26 ` Laszlo Ersek
2024-02-02 0:23 ` Ni, Ray
0 siblings, 1 reply; 4+ messages in thread
From: Laszlo Ersek @ 2024-01-31 11:26 UTC (permalink / raw)
To: devel, mikuback; +Cc: Ard Biesheuvel, Sami Mujawar, Ray Ni
On 1/31/24 05:44, Michael Kubacki wrote:
> From: Michael Kubacki <michael.kubacki@microsoft.com>
>
> Currently, if a MMI handler returns an unexpected failure status
> code, ASSERT (FALSE) is used. It is more useful to use
> ASSERT_EFI_ERROR() which also outputs the status code value.
>
> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> Cc: Sami Mujawar <sami.mujawar@arm.com>
> Cc: Ray Ni <ray.ni@intel.com>
> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
> ---
> StandaloneMmPkg/Core/Mmi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/StandaloneMmPkg/Core/Mmi.c b/StandaloneMmPkg/Core/Mmi.c
> index 8252355a48eb..0de6fd17fc88 100644
> --- a/StandaloneMmPkg/Core/Mmi.c
> +++ b/StandaloneMmPkg/Core/Mmi.c
> @@ -208,7 +208,7 @@ MmiManage (
> //
> // Unexpected status code returned.
> //
> - ASSERT (FALSE);
> + ASSERT_EFI_ERROR (Status);
> break;
> }
> }
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114880): https://edk2.groups.io/g/devel/message/114880
Mute This Topic: https://groups.io/mt/104069723/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/xyzzy [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg/Core: Output status in MMI handler assertion
2024-01-31 11:26 ` Laszlo Ersek
@ 2024-02-02 0:23 ` Ni, Ray
2024-02-03 16:46 ` Ard Biesheuvel
0 siblings, 1 reply; 4+ messages in thread
From: Ni, Ray @ 2024-02-02 0:23 UTC (permalink / raw)
To: devel@edk2.groups.io, lersek@redhat.com,
mikuback@linux.microsoft.com
Cc: Ard Biesheuvel, Sami Mujawar
Reviewed-by: Ray Ni <ray.ni@intel.com>
Thanks,
Ray
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Laszlo
> Ersek
> Sent: Wednesday, January 31, 2024 7:27 PM
> To: devel@edk2.groups.io; mikuback@linux.microsoft.com
> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>; Sami Mujawar
> <sami.mujawar@arm.com>; Ni, Ray <ray.ni@intel.com>
> Subject: Re: [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg/Core: Output
> status in MMI handler assertion
>
> On 1/31/24 05:44, Michael Kubacki wrote:
> > From: Michael Kubacki <michael.kubacki@microsoft.com>
> >
> > Currently, if a MMI handler returns an unexpected failure status
> > code, ASSERT (FALSE) is used. It is more useful to use
> > ASSERT_EFI_ERROR() which also outputs the status code value.
> >
> > Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> > Cc: Sami Mujawar <sami.mujawar@arm.com>
> > Cc: Ray Ni <ray.ni@intel.com>
> > Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
> > ---
> > StandaloneMmPkg/Core/Mmi.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/StandaloneMmPkg/Core/Mmi.c
> b/StandaloneMmPkg/Core/Mmi.c
> > index 8252355a48eb..0de6fd17fc88 100644
> > --- a/StandaloneMmPkg/Core/Mmi.c
> > +++ b/StandaloneMmPkg/Core/Mmi.c
> > @@ -208,7 +208,7 @@ MmiManage (
> > //
> > // Unexpected status code returned.
> > //
> > - ASSERT (FALSE);
> > + ASSERT_EFI_ERROR (Status);
> > break;
> > }
> > }
>
> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
>
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114983): https://edk2.groups.io/g/devel/message/114983
Mute This Topic: https://groups.io/mt/104069723/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg/Core: Output status in MMI handler assertion
2024-02-02 0:23 ` Ni, Ray
@ 2024-02-03 16:46 ` Ard Biesheuvel
0 siblings, 0 replies; 4+ messages in thread
From: Ard Biesheuvel @ 2024-02-03 16:46 UTC (permalink / raw)
To: Ni, Ray
Cc: devel@edk2.groups.io, lersek@redhat.com,
mikuback@linux.microsoft.com, Ard Biesheuvel, Sami Mujawar
On Fri, 2 Feb 2024 at 01:24, Ni, Ray <ray.ni@intel.com> wrote:
>
> Reviewed-by: Ray Ni <ray.ni@intel.com>
>
Merged as #5340
Thanks all
> > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Laszlo
> > Ersek
> > Sent: Wednesday, January 31, 2024 7:27 PM
> > To: devel@edk2.groups.io; mikuback@linux.microsoft.com
> > Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>; Sami Mujawar
> > <sami.mujawar@arm.com>; Ni, Ray <ray.ni@intel.com>
> > Subject: Re: [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg/Core: Output
> > status in MMI handler assertion
> >
> > On 1/31/24 05:44, Michael Kubacki wrote:
> > > From: Michael Kubacki <michael.kubacki@microsoft.com>
> > >
> > > Currently, if a MMI handler returns an unexpected failure status
> > > code, ASSERT (FALSE) is used. It is more useful to use
> > > ASSERT_EFI_ERROR() which also outputs the status code value.
> > >
> > > Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> > > Cc: Sami Mujawar <sami.mujawar@arm.com>
> > > Cc: Ray Ni <ray.ni@intel.com>
> > > Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
> > > ---
> > > StandaloneMmPkg/Core/Mmi.c | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/StandaloneMmPkg/Core/Mmi.c
> > b/StandaloneMmPkg/Core/Mmi.c
> > > index 8252355a48eb..0de6fd17fc88 100644
> > > --- a/StandaloneMmPkg/Core/Mmi.c
> > > +++ b/StandaloneMmPkg/Core/Mmi.c
> > > @@ -208,7 +208,7 @@ MmiManage (
> > > //
> > > // Unexpected status code returned.
> > > //
> > > - ASSERT (FALSE);
> > > + ASSERT_EFI_ERROR (Status);
> > > break;
> > > }
> > > }
> >
> > Reviewed-by: Laszlo Ersek <lersek@redhat.com>
> >
> >
> >
> >
> >
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#115074): https://edk2.groups.io/g/devel/message/115074
Mute This Topic: https://groups.io/mt/104069723/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-03 16:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 4:44 [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg/Core: Output status in MMI handler assertion Michael Kubacki
2024-01-31 11:26 ` Laszlo Ersek
2024-02-02 0:23 ` Ni, Ray
2024-02-03 16:46 ` Ard Biesheuvel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox