]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] m68knommu: check DEBUG defined arch code
authorGreg Ungerer <gerg@snapgear.com>
Mon, 26 Jun 2006 00:33:10 +0000 (10:33 +1000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 00:43:34 +0000 (17:43 -0700)
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>
arch/m68knommu/kernel/signal.c
arch/m68knommu/kernel/traps.c

index 8e2c5a88efa7599aa59e8bdd60fc719556741c9a..437f8c6c14a0d872a45084b10caef28a541703c1 100644 (file)
@@ -608,7 +608,7 @@ adjust_stack:
        if (regs->stkadj) {
                struct pt_regs *tregs =
                        (struct pt_regs *)((ulong)regs + regs->stkadj);
-#if DEBUG
+#if defined(DEBUG)
                printk(KERN_DEBUG "Performing stackadjust=%04x\n", regs->stkadj);
 #endif
                /* This must be copied with decreasing addresses to
@@ -678,7 +678,7 @@ adjust_stack:
        if (regs->stkadj) {
                struct pt_regs *tregs =
                        (struct pt_regs *)((ulong)regs + regs->stkadj);
-#if DEBUG
+#if defined(DEBUG)
                printk(KERN_DEBUG "Performing stackadjust=%04x\n", regs->stkadj);
 #endif
                /* This must be copied with decreasing addresses to
index 5bc06846286453e52f83a138244c07e5af1502e5..44ff74e643b1ecac7d6378f45c7ae146af627381 100644 (file)
@@ -93,12 +93,12 @@ asmlinkage void buserr_c(struct frame *fp)
        if (user_mode(&fp->ptregs))
                current->thread.esp0 = (unsigned long) fp;
 
-#if DEBUG
+#if defined(DEBUG)
        printk (KERN_DEBUG "*** Bus Error *** Format is %x\n", fp->ptregs.format);
 #endif
 
        die_if_kernel("bad frame format",&fp->ptregs,0);
-#if DEBUG
+#if defined(DEBUG)
        printk(KERN_DEBUG "Unknown SIGSEGV - 4\n");
 #endif
        force_sig(SIGSEGV, current);