[rtems commit] gen68340/startup/dumpanic.c: Fix printf() format warnings
Joel Sherrill
joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017
Module: rtems
Branch: master
Commit: 12c12e0b0d59b7e61a7ef15cd7657a59d12476d6
Changeset: http://git.rtems.org/rtems/commit/?id=12c12e0b0d59b7e61a7ef15cd7657a59d12476d6
Author: Joel Sherrill <joel at rtems.org>
Date: Sun Apr 23 12:55:25 2017 -0500
gen68340/startup/dumpanic.c: Fix printf() format warnings
---
c/src/lib/libbsp/m68k/gen68340/startup/dumpanic.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/c/src/lib/libbsp/m68k/gen68340/startup/dumpanic.c b/c/src/lib/libbsp/m68k/gen68340/startup/dumpanic.c
index 669aa26..7f82ab3 100644
--- a/c/src/lib/libbsp/m68k/gen68340/startup/dumpanic.c
+++ b/c/src/lib/libbsp/m68k/gen68340/startup/dumpanic.c
@@ -154,31 +154,31 @@ void _dbug_dumpanic(void)
}
printk(" exception (vector %x, type %x)\n",vector,frametype);
printk("---------------------------------------------\n");
- printk("PC : 0x%x ",pc);
- printk("A7 : 0x%x ",_boot_panic_registers.a7);
+ printk("PC : %p ",pc);
+ printk("A7 : 0x%lx ",_boot_panic_registers.a7);
printk("SR : 0x%x\n",status);
if (frametype==0x0c) {
- printk("\nfaulted address = 0x%x\n",faultedAddr);
+ printk("\nfaulted address = %p\n",faultedAddr);
}
printk("---------------------------------------------\n");
printk(" panic regs\n");
printk("---------------------------------------------\n");
- printk("D[0..3] : %x \t%x \t%x \t%x\n",
+ printk("D[0..3] : %lx \t%lx \t%lx \t%lx\n",
_boot_panic_registers.d0,_boot_panic_registers.d1,
_boot_panic_registers.d2,_boot_panic_registers.d3);
- printk("D[4..7] : %x \t%x \t%x \t%x\n",
+ printk("D[4..7] : %lx \t%lx \t%lx \t%lx\n",
_boot_panic_registers.d4,_boot_panic_registers.d5,
_boot_panic_registers.d6,_boot_panic_registers.d7);
- printk("A[0..3] : %x \t%x \t%x \t%x\n",
+ printk("A[0..3] : %lx \t%lx \t%lx \t%lx\n",
_boot_panic_registers.a0,_boot_panic_registers.a1,
_boot_panic_registers.a2,_boot_panic_registers.a3);
- printk("A[4..7] : %x \t%x \t%x \t%x\n",
+ printk("A[4..7] : %lx \t%lx \t%lx \t%lx\n",
_boot_panic_registers.a4,_boot_panic_registers.a5,
_boot_panic_registers.a6,_boot_panic_registers.a7);
- printk(" SFC : %x",_boot_panic_registers.sfc);
- printk(" DFC : %x\n",_boot_panic_registers.dfc);
- printk(" VBR : %x\n",_boot_panic_registers.vbr);
+ printk(" SFC : %lx",_boot_panic_registers.sfc);
+ printk(" DFC : %lx\n",_boot_panic_registers.dfc);
+ printk(" VBR : %lx\n",_boot_panic_registers.vbr);
printk("---------------------------------------------\n");
printk(" panic stack\n");
printk("---------------------------------------------\n");
More information about the vc
mailing list