From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilias Apalodimas Date: Sun, 4 Oct 2020 08:16:53 +0300 Subject: [PATCH 4/4] efi_selftest: print CRC32 of initrd as hexadecimal In-Reply-To: <20201003115716.38058-5-xypron.glpk@gmx.de> References: <20201003115716.38058-1-xypron.glpk@gmx.de> <20201003115716.38058-5-xypron.glpk@gmx.de> Message-ID: <20201004051653.GC27264@Iliass-MBP> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Oct 03, 2020 at 01:57:16PM +0200, Heinrich Schuchardt wrote: > Print the CRC32 loaded via the EFI_LOAD_FILE2_PROTOCOL as a hexadecimal > number. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_selftest/efi_selftest_load_initrd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/efi_selftest/efi_selftest_load_initrd.c b/lib/efi_selftest/efi_selftest_load_initrd.c > index e16163caca..fe060a6644 100644 > --- a/lib/efi_selftest/efi_selftest_load_initrd.c > +++ b/lib/efi_selftest/efi_selftest_load_initrd.c > @@ -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) { > -- > 2.28.0 > Reviewed-by: Ilias Apalodimas