]> 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)
commit80a82b236c79e1d1016ab3824b28e4d48a238c64
tree9c95b9ff025cc85e46d06e4876eddd94b28c57b4
parent716e89f7ab91c1197d134838b06aa6313c069d9b
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