浏览代码

[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>
Stephen Rothwell 18 年之前
父节点
当前提交
0a7c7efccc
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/powerpc/xmon/xmon.c

+ 4 - 0
arch/powerpc/xmon/xmon.c

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