bios: boot.c: fix warnings

this fixes the warnings, when compiling.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2024-09-11 11:15:56 +02:00
parent a1a3e846ac
commit 3966e3438c
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -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) {