2004-06-17 18:25:06

by Vincent Hanquez

[permalink] [raw]
Subject: [PATCH] trivial ppc cleanup (3/3) remove a format printk warning

Hi,

trivial format patch : nip is an unsigned long

Please apply,

Signed-off-by: Vincent Hanquez <[email protected]>

--- linux-2.6.7/arch/ppc/kernel/~traps.c 2004-06-17 18:25:44.000000000 +0200
+++ linux-2.6.7/arch/ppc/kernel/traps.c 2004-06-17 18:25:51.000000000 +0200
@@ -646,7 +646,7 @@
/* The kernel has executed an altivec instruction without
first enabling altivec. Whinge but let it do it. */
if (++kernel_altivec_count < 10)
- printk(KERN_ERR "AltiVec used in kernel (task=%p, pc=%x)\n",
+ printk(KERN_ERR "AltiVec used in kernel (task=%p, pc=%lx)\n",
current, regs->nip);
regs->msr |= MSR_VEC;
}