summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2017-06-16 00:18:11 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-06-29 02:42:27 +0200
commitf259fe295ef07aafadf3316f58c4ac4eddfeccf1 (patch)
tree482b8748d662d3c785ece1b1e8e29b28a876051a
parent70f743d141d3b14ca904581dfd1bd50dbe685c4f (diff)
downloadop-kernel-dev-f259fe295ef07aafadf3316f58c4ac4eddfeccf1.zip
op-kernel-dev-f259fe295ef07aafadf3316f58c4ac4eddfeccf1.tar.gz
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>
-rw-r--r--arch/mips/kernel/branch.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/kernel/branch.c b/arch/mips/kernel/branch.c
index e53379c..b79ed9a 100644
--- a/arch/mips/kernel/branch.c
+++ b/arch/mips/kernel/branch.c
@@ -818,18 +818,18 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
return ret;
sigill_dsp:
- pr_info("%s: DSP branch but not DSP ASE - sending SIGILL.\n",
- current->comm);
+ pr_debug("%s: DSP branch but not DSP ASE - sending SIGILL.\n",
+ current->comm);
force_sig(SIGILL, current);
return -EFAULT;
sigill_r2r6:
- pr_info("%s: R2 branch but r2-to-r6 emulator is not present - sending SIGILL.\n",
- current->comm);
+ pr_debug("%s: R2 branch but r2-to-r6 emulator is not present - sending SIGILL.\n",
+ current->comm);
force_sig(SIGILL, current);
return -EFAULT;
sigill_r6:
- pr_info("%s: R6 branch but no MIPSr6 ISA support - sending SIGILL.\n",
- current->comm);
+ pr_debug("%s: R6 branch but no MIPSr6 ISA support - sending SIGILL.\n",
+ current->comm);
force_sig(SIGILL, current);
return -EFAULT;
}
OpenPOWER on IntegriCloud