Skip to content

Commit dd33e5d

Browse files
andreas-schwabpalmer-dabbelt
authored andcommitted
riscv: use KERN_INFO in do_trap
Print the instruction dump with info instead of emergency level. The unhandled signal message is only for informational purpose. Fixes: b8a03a6 ("riscv: add userland instruction dump to RISC-V splats") Signed-off-by: Andreas Schwab <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: Atish Patra <[email protected]> Reviewed-by: Yunhui Cui <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent c27fa53 commit dd33e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/traps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr)
122122
print_vma_addr(KERN_CONT " in ", instruction_pointer(regs));
123123
pr_cont("\n");
124124
__show_regs(regs);
125-
dump_instr(KERN_EMERG, regs);
125+
dump_instr(KERN_INFO, regs);
126126
}
127127

128128
force_sig_fault(signo, code, (void __user *)addr);

0 commit comments

Comments
 (0)