]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_selftest: print CRC32 of initrd as hexadecimal
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 3 Oct 2020 11:43:45 +0000 (13:43 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 6 Oct 2020 05:43:56 +0000 (07:43 +0200)
Print the CRC32 loaded via the EFI_LOAD_FILE2_PROTOCOL as a hexadecimal
number.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_selftest/efi_selftest_load_initrd.c

index e16163caca85e673759ebcb02338d73ce9317c4c..fe060a6644021b17d44b1a7a5a849160e050837e 100644 (file)
@@ -200,7 +200,7 @@ static int execute(void)
                efi_st_error("Could not determine CRC32\n");
                return EFI_ST_FAILURE;
        }
-       efi_st_printf("CRC32 %u\n", (unsigned int)crc32);
+       efi_st_printf("CRC32 %.8x\n", (unsigned int)crc32);
 
        status = boottime->free_pool(buf);
        if (status != EFI_SUCCESS) {