From 3966e3438cd2c40a5b2d9c1efaa8edb8f2d3c2fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Wed, 11 Sep 2024 11:15:56 +0200 Subject: [PATCH] bios: boot.c: fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this fixes the warnings, when compiling. Signed-off-by: Fin Maaß --- litex/soc/software/bios/boot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index 7c62409e4..5faa64935 100755 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -589,14 +589,14 @@ static unsigned int check_image_in_flash(unsigned int base_address) length = MMPTR(base_address); if((length < 32) || (length > 16*1024*1024)) { - printf("Error: Invalid image length 0x%08x\n", length); + printf("Error: Invalid image length 0x%08lx\n", length); return 0; } crc = MMPTR(base_address + 4); got_crc = crc32((unsigned char *)(base_address + 8), length); if(crc != got_crc) { - printf("CRC failed (expected %08x, got %08x)\n", crc, got_crc); + printf("CRC failed (expected %08lx, got %08lx)\n", crc, got_crc); return 0; } @@ -611,7 +611,7 @@ static int copy_image_from_flash_to_ram(unsigned int flash_address, unsigned lon length = check_image_in_flash(flash_address); if(length > 0) { - printf("Copying 0x%08x to 0x%08lx (%d bytes)...\n", flash_address, ram_address, length); + printf("Copying 0x%08x to 0x%08lx (%ld bytes)...\n", flash_address, ram_address, length); offset = 0; init_progression_bar(length); while (length > 0) {