]> git.baikalelectronics.ru Git - kernel.git/commit
kprobes: treewide: Cleanup the error messages for kprobes
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 14 Sep 2021 14:39:25 +0000 (23:39 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 1 Oct 2021 01:24:05 +0000 (21:24 -0400)
commit9c9a2c89a41a78501cf8c9159373fba61e27afff
tree9c95b9ff025cc85e46d06e4876eddd94b28c57b4
parent0c08b2b6e5970c269b112717c70a66b01fad6e78
kprobes: treewide: Cleanup the error messages for kprobes

This clean up the error/notification messages in kprobes related code.
Basically this defines 'pr_fmt()' macros for each files and update
the messages which describes

 - what happened,
 - what is the kernel going to do or not do,
 - is the kernel fine,
 - what can the user do about it.

Also, if the message is not needed (e.g. the function returns unique
error code, or other error message is already shown.) remove it,
and replace the message with WARN_*() macros if suitable.

Link: https://lkml.kernel.org/r/163163036568.489837.14085396178727185469.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
arch/arm/probes/kprobes/core.c
arch/arm64/kernel/probes/kprobes.c
arch/csky/kernel/probes/kprobes.c
arch/mips/kernel/kprobes.c
arch/riscv/kernel/probes/kprobes.c
arch/s390/kernel/kprobes.c
kernel/kprobes.c