Use %p instead of %08x in printk(). Signed-off-by: Kulikov Vasiliy <segooon@xxxxxxxxx> --- arch/h8300/kernel/traps.c | 4 +++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/h8300/kernel/traps.c b/arch/h8300/kernel/traps.c index 3c0b66b..2c6270f 100644 --- a/arch/h8300/kernel/traps.c +++ b/arch/h8300/kernel/traps.c @@ -77,7 +78,7 @@ static void dump(struct pt_regs *fp) tp = ((unsigned char *) fp->pc) - 0x20; for (sp = (unsigned long *) tp, i = 0; (i < 0x40); i += 4) { if ((i % 0x10) == 0) - printk("\n%08x: ", (int) (tp + i)); + printk("\n%p: ", tp + i); printk("%08x ", (int) *sp++); } printk("\n"); @@ -86,7 +87,7 @@ static void dump(struct pt_regs *fp) tp = ((unsigned char *) fp) - 0x40; for (sp = (unsigned long *) tp, i = 0; (i < 0xc0); i += 4) { if ((i % 0x10) == 0) - printk("\n%08x: ", (int) (tp + i)); + printk("\n%p: ", tp + i); printk("%08x ", (int) *sp++); } printk("\n"); -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html