aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68knommu/kernel/traps.c
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@snapgear.com>2006-06-25 20:33:10 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-25 20:43:34 -0400
commitbb28632c0d651f26dddf99afb7d7703e8e0ce293 (patch)
tree8278adb86195db0bb1615c349ae84566692f6122 /arch/m68knommu/kernel/traps.c
parent6f57622a32e6bdc0a585c8be6f25bb8e75a3ff9e (diff)
[PATCH] m68knommu: check DEBUG defined arch code
Don't rely on DEBUG having a value, check for it being defined. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m68knommu/kernel/traps.c')
-rw-r--r--arch/m68knommu/kernel/traps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68knommu/kernel/traps.c b/arch/m68knommu/kernel/traps.c
index 5bc068462864..44ff74e643b1 100644
--- a/arch/m68knommu/kernel/traps.c
+++ b/arch/m68knommu/kernel/traps.c
@@ -93,12 +93,12 @@ asmlinkage void buserr_c(struct frame *fp)
93 if (user_mode(&fp->ptregs)) 93 if (user_mode(&fp->ptregs))
94 current->thread.esp0 = (unsigned long) fp; 94 current->thread.esp0 = (unsigned long) fp;
95 95
96#if DEBUG 96#if defined(DEBUG)
97 printk (KERN_DEBUG "*** Bus Error *** Format is %x\n", fp->ptregs.format); 97 printk (KERN_DEBUG "*** Bus Error *** Format is %x\n", fp->ptregs.format);
98#endif 98#endif
99 99
100 die_if_kernel("bad frame format",&fp->ptregs,0); 100 die_if_kernel("bad frame format",&fp->ptregs,0);
101#if DEBUG 101#if defined(DEBUG)
102 printk(KERN_DEBUG "Unknown SIGSEGV - 4\n"); 102 printk(KERN_DEBUG "Unknown SIGSEGV - 4\n");
103#endif 103#endif
104 force_sig(SIGSEGV, current); 104 force_sig(SIGSEGV, current);