[PATCH] ppc - fix build warnings in arch/ppc/kernel/traps.c

Becky Bruce bgill at freescale.com
Thu Nov 3 03:52:52 EST 2005


ppc: Fix build warnings in traps.c

The latest updates to bug.h generate build warnings in traps.c in 
arch/ppc.  Fix print format specifiers to account for change of line type  
to long from int.

Signed-off-by: Becky Bruce <becky.bruce at freescale.com>

---
commit fdbe8ff0c9719da6bcbe6fedf10fb3d32c09ec92
tree 6330b8c00cd62dab8b58cd8808619cf3a1d44f69
parent 211317f02e1d2ac3ebd5bf139889160c834573da
author Becky Bruce <becky.bruce at freescale.com> Wed, 02 Nov 2005 10:47:59 -0600
committer Becky Bruce <becky.bruce at freescale.com> Wed, 02 Nov 2005 10:47:59 -0600

 arch/ppc/kernel/traps.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/ppc/kernel/traps.c b/arch/ppc/kernel/traps.c
index f265b81..16adde6 100644
--- a/arch/ppc/kernel/traps.c
+++ b/arch/ppc/kernel/traps.c
@@ -606,22 +606,22 @@ int check_bug_trap(struct pt_regs *regs)
 	if (bug->line & BUG_WARNING_TRAP) {
 		/* this is a WARN_ON rather than BUG/BUG_ON */
 #ifdef CONFIG_XMON
-		xmon_printf(KERN_ERR "Badness in %s at %s:%d\n",
+		xmon_printf(KERN_ERR "Badness in %s at %s:%ld\n",
 		       bug->function, bug->file,
 		       bug->line & ~BUG_WARNING_TRAP);
 #endif /* CONFIG_XMON */		
-		printk(KERN_ERR "Badness in %s at %s:%d\n",
+		printk(KERN_ERR "Badness in %s at %s:%ld\n",
 		       bug->function, bug->file,
 		       bug->line & ~BUG_WARNING_TRAP);
 		dump_stack();
 		return 1;
 	}
 #ifdef CONFIG_XMON
-	xmon_printf(KERN_CRIT "kernel BUG in %s at %s:%d!\n",
+	xmon_printf(KERN_CRIT "kernel BUG in %s at %s:%ld!\n",
 	       bug->function, bug->file, bug->line);
 	xmon(regs);
 #endif /* CONFIG_XMON */
-	printk(KERN_CRIT "kernel BUG in %s at %s:%d!\n",
+	printk(KERN_CRIT "kernel BUG in %s at %s:%ld!\n",
 	       bug->function, bug->file, bug->line);
 
 	return 0;



More information about the Linuxppc-dev mailing list