[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1279130442-10695-1-git-send-email-segooon@gmail.com>
Date: Wed, 14 Jul 2010 22:00:42 +0400
From: Kulikov Vasiliy <segooon@...il.com>
To: kernel-janitors@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH 01/11] arch/h8300/kernel/traps.c: formatting of pointers in printk()
Use %p instead of %08x in printk().
Signed-off-by: Kulikov Vasiliy <segooon@...il.com>
---
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 linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists