diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-03-04 07:05:34 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-09 05:03:26 +0100 |
commit | 0a7c7efccc08f00ae6fc8e1f2de0ee61f07357fd (patch) | |
tree | b87ce4a272f83b51fae97d45fa11fdd4948b3ca9 /arch/powerpc/xmon | |
parent | [POWERPC] Allow pSeries to build without CONFIG_PCI (diff) | |
download | linux-0a7c7efccc08f00ae6fc8e1f2de0ee61f07357fd.tar.xz linux-0a7c7efccc08f00ae6fc8e1f2de0ee61f07357fd.zip |
[POWERPC] Allow xmon to build without CONFIG_DEBUG_BUGVERBOSE
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r-- | arch/powerpc/xmon/xmon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index bf299b66f3fc..f12687d0354d 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -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) |