Skip to content

Commit

Permalink
metag: Remove duplicate KERN_<LEVEL> prefix
Browse files Browse the repository at this point in the history
Use a bare printk to avoid a duplicate KERN_<LEVEL> in logging output.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
  • Loading branch information
JoePerches authored and James Hogan committed Jul 15, 2016
1 parent 986724d commit fb2bb46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/metag/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ int do_page_fault(struct pt_regs *regs, unsigned long address,

if (show_unhandled_signals && unhandled_signal(tsk, SIGSEGV) &&
printk_ratelimit()) {
pr_info("%s%s[%d]: segfault at %lx pc %08x sp %08x write %d trap %#x (%s)",
printk("%s%s[%d]: segfault at %lx pc %08x sp %08x write %d trap %#x (%s)",
task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG,
tsk->comm, task_pid_nr(tsk), address,
regs->ctx.CurrPC, regs->ctx.AX[0].U0,
Expand Down

0 comments on commit fb2bb46

Please sign in to comment.