]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: hab: Display All HAB events via hab_status command
authorUtkarsh Gupta <utkarsh.gupta@nxp.com>
Thu, 25 Mar 2021 09:30:11 +0000 (17:30 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 07:18:29 +0000 (09:18 +0200)
Add ability for hab_status command to show All HAB events and not just
HAB failure events

Signed-off-by: Utkarsh Gupta <utkarsh.gupta@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/hab.c

index 01ddfab6996a41417e35a56a63ab9e52562828a0..264e148ba6b13027630449da3e0fb3fea67889f4 100644 (file)
@@ -456,8 +456,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",