Skip to content
Snippets Groups Projects
Commit 25da0b84 authored by Haavard Skinnemoen's avatar Haavard Skinnemoen
Browse files

favr-32-ezkit: Fix printf format warnings

parent 462da25e
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ phys_size_t initdram(int board_type) ...@@ -75,7 +75,7 @@ phys_size_t initdram(int board_type)
unmap_physmem(sdram_base, EBI_SDRAM_SIZE); unmap_physmem(sdram_base, EBI_SDRAM_SIZE);
if (expected_size != actual_size) if (expected_size != actual_size)
printf("Warning: Only %u of %u MiB SDRAM is working\n", printf("Warning: Only %lu of %lu MiB SDRAM is working\n",
actual_size >> 20, expected_size >> 20); actual_size >> 20, expected_size >> 20);
return actual_size; return actual_size;
......
...@@ -68,7 +68,7 @@ unsigned long flash_init(void) ...@@ -68,7 +68,7 @@ unsigned long flash_init(void)
void flash_print_info(flash_info_t *info) void flash_print_info(flash_info_t *info)
{ {
printf("Flash: Vendor ID: 0x%02x, Product ID: 0x%02x\n", printf("Flash: Vendor ID: 0x%02lx, Product ID: 0x%02lx\n",
info->flash_id >> 16, info->flash_id & 0xffff); info->flash_id >> 16, info->flash_id & 0xffff);
printf("Size: %ld MB in %d sectors\n", printf("Size: %ld MB in %d sectors\n",
info->size >> 10, info->sector_count); info->size >> 10, info->sector_count);
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
#define CONFIG_AUTOBOOT 1 #define CONFIG_AUTOBOOT 1
#define CONFIG_AUTOBOOT_KEYED 1 #define CONFIG_AUTOBOOT_KEYED 1
#define CONFIG_AUTOBOOT_PROMPT \ #define CONFIG_AUTOBOOT_PROMPT \
"Press SPACE to abort autoboot in %d seconds\n" "Press SPACE to abort autoboot in %d seconds\n", bootdelay
#define CONFIG_AUTOBOOT_DELAY_STR "d" #define CONFIG_AUTOBOOT_DELAY_STR "d"
#define CONFIG_AUTOBOOT_STOP_STR " " #define CONFIG_AUTOBOOT_STOP_STR " "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment