Skip to contentSkip to conversation

arch/mips/kernel/smtc.c: formatting of pointers in printk()

PATCH Applied Kulikov Vasiliy 2 participants 2 messages Jul 14, 2010 – Jul 26, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/11 arch/mips/kernel/smtc.c: formatting of pointers in printk()

Use %p instead of %08x in printk().

---
 arch/mips/kernel/smtc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/mips/kernel/smtc.c +1 -2
index a95dea5..cfeb2c1 100644
@@ -975,8 +975,7 @@ void ipi_decode(struct smtc_ipi *pipi)
 			ipi_call_interrupt();
 			break;
 		default:
-			printk("Impossible SMTC IPI Argument 0x%x\n",
-				(int)arg_copy);
+			printk("Impossible SMTC IPI Argument %p\n", arg_copy);
 			break;
 		}
 		break;
Signature · 1 line
1.7.0.4
Applied
#1 lore raw
Quoted 1 line · Kulikov Vasiliy

Use %p instead of %08x in printk().

Queued for 2.6.36, thanks!

Yes, %p is prefered here. But your log message doesn't mention that your patch also does a functional change, it drops the 0x prefix of the printed value ...

Ralf