summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCillian O'Donnell <cpodonnell8@gmail.com>2017-04-08 11:55:24 +0100
committerJoel Sherrill <joel@rtems.org>2017-04-14 13:01:13 -0500
commit913ed81b1e35a831a267bd5825933648babe8b4e (patch)
tree37186bc033fffb8fe76776e1225a1e063978142a
parentlibbsp/.../sparc64/loader/main.c: Use inttypes.h constants to remove 1 warning (diff)
downloadrtems-913ed81b1e35a831a267bd5825933648babe8b4e.tar.bz2
virtex5/startup/bspstart.c: Use %p to fix 11 warnings.
-rw-r--r--c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c
index 9d610e48ca..93f99adda0 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c
@@ -69,6 +69,7 @@
#include <string.h>
#include <fcntl.h>
+#include <inttypes.h>
#define DO_DOWN_ALIGN(x,a) ((x) & ~((a)-1))
@@ -227,20 +228,20 @@ void bsp_start(void)
/* Let the user know what parameters we were compiled with */
printk(" Base/Start End Size\n"
- "RAM: 0x%08x 0x%x\n"
- "RTEMS: 0x%08x\n"
+ "RAM: %p %p\n"
+ "RTEMS: %p\n"
"Interrupt Stack: 0x%08x 0x%x\n"
- "Stack: 0x%08x 0x%08x 0x%x\n"
- "Workspace: 0x%08x 0x%08x\n"
- "MsgArea: 0x%08x 0x%x\n"
- "Physical RAM 0x%08x\n",
- (uint32_t)RamBase, (uint32_t)RamSize,
- (uint32_t)__rtems_end,
- intrStackStart, intrStackSize,
- (uint32_t)__stack_base, (uint32_t)_stack, (uint32_t)StackSize,
- (uint32_t)WorkAreaBase, (uint32_t)__bsp_ram_end,
- (uint32_t)MsgAreaBase, (uint32_t)MsgAreaSize,
- (uint32_t)__phy_ram_end);
+ "Stack: %p %p %p\n"
+ "Workspace: %p %p\n"
+ "MsgArea: %p %p\n"
+ "Physical RAM %p\n",
+ RamBase, RamSize,
+ __rtems_end,
+ intrStackStart, intrStackSize,
+ __stack_base, _stack, StackSize,
+ WorkAreaBase, __bsp_ram_end,
+ MsgAreaBase, MsgAreaSize,
+ __phy_ram_end);
/*
* Initialize RTEMS IRQ system