[POWERPC] Allow xmon to build without CONFIG_DEBUG_BUGVERBOSE
authorStephen Rothwell <sfr@canb.auug.org.au>
Sun, 4 Mar 2007 06:05:34 +0000 (17:05 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 9 Mar 2007 04:03:26 +0000 (15:03 +1100)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/xmon/xmon.c

index bf299b6..f12687d 100644 (file)
@@ -1360,8 +1360,12 @@ static void print_bug_trap(struct pt_regs *regs)
        if (is_warning_bug(bug))
                return;
 
+#ifdef CONFIG_DEBUG_BUGVERBOSE
        printf("kernel BUG at %s:%u!\n",
               bug->file, bug->line);
+#else
+       printf("kernel BUG at %p!\n", (void *)bug->bug_addr);
+#endif
 }
 
 void excprint(struct pt_regs *fp)