arch/h8300/kernel/traps.c: formatting of pointers in printk()
PATCH 1/11 arch/h8300/kernel/traps.c: formatting of pointers in printk()
Use %p instead of %08x in printk().
Signed-off-by Kulikov Vasiliy <[email protected]>
--- arch/h8300/kernel/traps.c | 4 +++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/h8300/kernel/traps.c +2 -2
@@ -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" );
Signature · 1 line
1.7.0.4