[PATCH 09/24] blackfin: fix printf compiler warnings
Sascha Hauer
s.hauer at pengutronix.de
Fri Jan 7 05:43:49 EST 2011
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/blackfin/lib/blackfin_linux.c | 2 +-
arch/blackfin/lib/traps.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/blackfin/lib/blackfin_linux.c b/arch/blackfin/lib/blackfin_linux.c
index eda3f4c..a20cf55 100644
--- a/arch/blackfin/lib/blackfin_linux.c
+++ b/arch/blackfin/lib/blackfin_linux.c
@@ -48,7 +48,7 @@ static int do_bootm_linux(struct image_data *idata)
image_header_t *os_header = &os_handle->header;
appl = (int (*)(char *))image_get_ep(os_header);
- printf("Starting Kernel at 0x%08x\n", appl);
+ printf("Starting Kernel at 0x%p\n", appl);
if (relocate_image(os_handle, (void *)image_get_load(os_header)))
return -1;
diff --git a/arch/blackfin/lib/traps.c b/arch/blackfin/lib/traps.c
index ce479b9..14f1da9 100644
--- a/arch/blackfin/lib/traps.c
+++ b/arch/blackfin/lib/traps.c
@@ -81,7 +81,7 @@ static const char *trap_to_string(int trapnr)
void trap_c (struct pt_regs *regs)
{
- unsigned long trapnr = (regs->seqstat) & SEQSTAT_EXCAUSE;
+ uint32_t trapnr = (regs->seqstat) & SEQSTAT_EXCAUSE;
const char *str;
printf("Exception occured!\n\n");
--
1.7.2.3
More information about the barebox
mailing list