From a9fdc0e4efa5c50ae194f7862d87cf53608afd8c Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Tue, 5 Feb 2019 15:58:16 -0600 Subject: [PATCH] MLK-20787: imx: hab: Display All HAB events via hab_status command Add ability for hab_status command to show All HAB events and not just HAB failure events Signed-off-by: Utkarsh Gupta Reviewed-by: Ye Li --- arch/arm/mach-imx/hab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c index b2b3929781..77bb8bcc7c 100644 --- a/arch/arm/mach-imx/hab.c +++ b/arch/arm/mach-imx/hab.c @@ -447,8 +447,8 @@ static int get_hab_status(void) printf("\nHAB Configuration: 0x%02x, HAB State: 0x%02x\n", config, state); - /* Display HAB Error events */ - while (hab_rvt_report_event(HAB_FAILURE, index, event_data, + /* Display HAB events */ + while (hab_rvt_report_event(HAB_STS_ANY, index, event_data, &bytes) == HAB_SUCCESS) { puts("\n"); printf("--------- HAB Event %d -----------------\n",