mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 20:11:32 +00:00
avr32: Fix printf() format warnings
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
This commit is contained in:
parent
1953d128fd
commit
7f4b009f42
4 changed files with 7 additions and 5 deletions
|
@ -81,7 +81,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;
|
||||||
|
|
|
@ -104,7 +104,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;
|
||||||
|
|
|
@ -70,7 +70,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);
|
||||||
|
|
|
@ -273,7 +273,9 @@
|
||||||
| SYSREG_BF(name,value))
|
| SYSREG_BF(name,value))
|
||||||
|
|
||||||
/* Register access macros */
|
/* Register access macros */
|
||||||
#define sysreg_read(reg) __builtin_mfsr(SYSREG_##reg)
|
#define sysreg_read(reg) \
|
||||||
#define sysreg_write(reg, value) __builtin_mtsr(SYSREG_##reg, value)
|
((unsigned long)__builtin_mfsr(SYSREG_##reg))
|
||||||
|
#define sysreg_write(reg, value) \
|
||||||
|
__builtin_mtsr(SYSREG_##reg, value)
|
||||||
|
|
||||||
#endif /* __ASM_AVR32_SYSREG_H__ */
|
#endif /* __ASM_AVR32_SYSREG_H__ */
|
||||||
|
|
Loading…
Add table
Reference in a new issue