summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-04-23 20:05:12 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-24 12:00:56 -0500
commit31908b124f5b94c88625d931ab71a23f453d602d (patch)
treeae030330131a932b2a6489d58128e49777b89d9d
parent79d45cbd7b63a5ef7b2b46b8de10dfa5dbfa8899 (diff)
downloadrtems-31908b124f5b94c88625d931ab71a23f453d602d.tar.bz2
shared/bootloader/mm.c: Fix printf() format warnings
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/mm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c b/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c
index c3203c6ab5..ea3cdde529 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c
@@ -210,12 +210,14 @@ void _handler(int vec, ctxt *p) {
}
} else {
MMUon();
- printk("\nPanic: vector=%x, dsisr=%lx, faultaddr =%lx, msr=%lx opcode=%lx\n", vec,
+ printk(
+ "\nPanic: vector=%d, dsisr=%lx, faultaddr =%lx, "
+ "msr=%lx opcode=%x\n", vec,
cause, p->nip, p->msr, * ((unsigned int*) p->nip) );
if (vec == 7) {
unsigned int* ptr = ((unsigned int*) p->nip) - 4 * 10;
for (; ptr <= (((unsigned int*) p->nip) + 4 * 10); ptr ++)
- printk("Hexdecimal code at address %x = %x\n", ptr, *ptr);
+ printk("Hexdecimal code at address %p = %x\n", ptr, *ptr);
}
hang("Program or alignment exception at ", vaddr, p);
}