Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Use `pr_debug' for messages from `__compute_return_epc_for_insn'

Reduce the log level for branch emulation error messages issued before
sending SIGILL by `__compute_return_epc_for_insn' as these are triggered
by user software and are not an event that would normally require any
attention. The same signal sent from elsewhere does not actually leave
any trace in the kernel log at all.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16402/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Maciej W. Rozycki and committed by
Ralf Baechle
f259fe29 70f743d1

+6 -6
+6 -6
arch/mips/kernel/branch.c
··· 818 818 return ret; 819 819 820 820 sigill_dsp: 821 - pr_info("%s: DSP branch but not DSP ASE - sending SIGILL.\n", 822 - current->comm); 821 + pr_debug("%s: DSP branch but not DSP ASE - sending SIGILL.\n", 822 + current->comm); 823 823 force_sig(SIGILL, current); 824 824 return -EFAULT; 825 825 sigill_r2r6: 826 - pr_info("%s: R2 branch but r2-to-r6 emulator is not present - sending SIGILL.\n", 827 - current->comm); 826 + pr_debug("%s: R2 branch but r2-to-r6 emulator is not present - sending SIGILL.\n", 827 + current->comm); 828 828 force_sig(SIGILL, current); 829 829 return -EFAULT; 830 830 sigill_r6: 831 - pr_info("%s: R6 branch but no MIPSr6 ISA support - sending SIGILL.\n", 832 - current->comm); 831 + pr_debug("%s: R6 branch but no MIPSr6 ISA support - sending SIGILL.\n", 832 + current->comm); 833 833 force_sig(SIGILL, current); 834 834 return -EFAULT; 835 835 }