MLK-16944: imx8qm/qxp: Add leading zeros to SCFW commit hash
authorLeonard Crestez <leonard.crestez@nxp.com>
Wed, 22 Nov 2017 11:51:15 +0000 (13:51 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 22 Nov 2017 13:43:18 +0000 (15:43 +0200)
This fixes SCFW commits with leading zeros like
0245582bf4a58289e25c59fb0befe84923ca6742 being displayed as "245582b".

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
arch/arm/cpu/armv8/imx8/cpu.c

index ab1acea..213a8ee 100644 (file)
@@ -697,7 +697,7 @@ static void acquire_buildinfo(void)
        /* Set all to env */
        set_buildinfo_to_env(sc_commit, mkimage_commit, (char *)&atf_commit);
 
-       printf("\n BuildInfo: \n  - SCFW %x, IMX-MKIMAGE %s, ATF %s\n  - %s \n\n", sc_commit, mkimage_commit, (char *)&atf_commit, U_BOOT_VERSION);
+       printf("\n BuildInfo: \n  - SCFW %08x, IMX-MKIMAGE %s, ATF %s\n  - %s \n\n", sc_commit, mkimage_commit, (char *)&atf_commit, U_BOOT_VERSION);
 }
 
 #if defined(CONFIG_ARCH_MISC_INIT)