diff options
author | Andreas Bießmann <biessmann@corscience.de> | 2011-12-15 09:56:55 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-17 23:57:18 +0100 |
commit | 87c24e2580bb6bd032a36c00f7f8944c8ff2867e (patch) | |
tree | f51f30674d970f9177a35edac44ce7c1e3b156fa /arch/avr32/cpu | |
parent | 2d1b83b346431bfee7574822d356e5a28ead21d3 (diff) | |
download | u-boot-imx-87c24e2580bb6bd032a36c00f7f8944c8ff2867e.zip u-boot-imx-87c24e2580bb6bd032a36c00f7f8944c8ff2867e.tar.gz u-boot-imx-87c24e2580bb6bd032a36c00f7f8944c8ff2867e.tar.bz2 |
avr32:mmu.c: fix printf() length modifier
avr32 uses unsigned long addresses, fix the printf() length modifier for that
fact.
Before this patch following warning occours:
---8<---
mmu.c: In function 'mmu_init_r':
mmu.c:25: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'uintptr_t'
--->8---
Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
cc: Mike Frysinger <vapier@gentoo.org>
cc: Thomas Chou <thomas@wytron.com.tw>
cc: Reinhard Meyer <u-boot@emk-elektronik.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/avr32/cpu')
-rw-r--r-- | arch/avr32/cpu/at32ap700x/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/cpu/at32ap700x/mmu.c b/arch/avr32/cpu/at32ap700x/mmu.c index c3a1b93..0e28b21 100644 --- a/arch/avr32/cpu/at32ap700x/mmu.c +++ b/arch/avr32/cpu/at32ap700x/mmu.c @@ -22,7 +22,7 @@ void mmu_init_r(unsigned long dest_addr) */ vmr_table_addr = (uintptr_t)&mmu_vmr_table; sysreg_write(PTBR, vmr_table_addr); - printf("VMR table @ 0x%08x\n", vmr_table_addr); + printf("VMR table @ 0x%08lx\n", vmr_table_addr); /* Enable paging */ sysreg_write(MMUCR, SYSREG_BF(DRP, 1) | SYSREG_BF(DLA, 1) |