浏览代码

Blackfin: restore exception banner when dumping crash info

Previous unification code put the exception banner behind the "is oops"
logic when it should have been printed all the time.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 16 年之前
父节点
当前提交
15627bd35c
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      arch/blackfin/kernel/traps.c

+ 3 - 2
arch/blackfin/kernel/traps.c

@@ -570,11 +570,12 @@ asmlinkage void trap_c(struct pt_regs *fp)
 	if (kernel_mode_regs(fp) || (current && !current->mm)) {
 	if (kernel_mode_regs(fp) || (current && !current->mm)) {
 		console_verbose();
 		console_verbose();
 		oops_in_progress = 1;
 		oops_in_progress = 1;
-		if (strerror)
-			verbose_printk(strerror);
 	}
 	}
 
 
 	if (sig != SIGTRAP) {
 	if (sig != SIGTRAP) {
+		if (strerror)
+			verbose_printk(strerror);
+
 		dump_bfin_process(fp);
 		dump_bfin_process(fp);
 		dump_bfin_mem(fp);
 		dump_bfin_mem(fp);
 		show_regs(fp);
 		show_regs(fp);