]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
favr-32-ezkit: Fix printf format warnings
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Wed, 20 Aug 2008 07:27:37 +0000 (09:27 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Wed, 20 Aug 2008 07:27:37 +0000 (09:27 +0200)
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
board/earthlcd/favr-32-ezkit/favr-32-ezkit.c
board/earthlcd/favr-32-ezkit/flash.c
include/configs/favr-32-ezkit.h

index 22b698128e5a391486cf92968b2a2005a5d3502a..da69e754f93ce81f6e065ad36a611373a909ff06 100644 (file)
@@ -75,7 +75,7 @@ phys_size_t initdram(int board_type)
        unmap_physmem(sdram_base, EBI_SDRAM_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);
 
        return actual_size;
index 49a715a2994b976b5a854812eff665041800236b..2aa9415e8f5642a7f0ecea4903566bf6a0db1887 100644 (file)
@@ -68,7 +68,7 @@ unsigned long flash_init(void)
 
 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);
        printf("Size: %ld MB in %d sectors\n",
               info->size >> 10, info->sector_count);
index 6f77c256bd6d4654ef6eadc5da26b72f2cc9d2e9..a27c02ad253855009024e39c80672de0fff41d3c 100644 (file)
 #define CONFIG_AUTOBOOT                        1
 #define CONFIG_AUTOBOOT_KEYED          1
 #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_STOP_STR       " "