summaryrefslogtreecommitdiff
path: root/kernel/seccomp.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2020-06-16 08:02:56 +0300
committerKees Cook <keescook@chromium.org>2020-07-11 02:01:52 +0300
commite68f9d49dda1744d548426c8b4335a8d693a36d0 (patch)
tree20211f75be055d2cc1a1d611667cede47ff943ec /kernel/seccomp.c
parent81a0c8bc82be7c15dbf3e54832334552e6b76e2b (diff)
downloadlinux-e68f9d49dda1744d548426c8b4335a8d693a36d0.tar.xz
seccomp: Use pr_fmt
Avoid open-coding "seccomp: " prefixes for pr_*() calls. Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'kernel/seccomp.c')
-rw-r--r--kernel/seccomp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index ba30bffa9301..5f0e3f3a7a5d 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -13,6 +13,7 @@
* Mode 2 allows user-defined system call filters in the form
* of Berkeley Packet Filters/Linux Socket Filters.
*/
+#define pr_fmt(fmt) "seccomp: " fmt
#include <linux/refcount.h>
#include <linux/audit.h>
@@ -1873,7 +1874,7 @@ static int __init seccomp_sysctl_init(void)
hdr = register_sysctl_paths(seccomp_sysctl_path, seccomp_sysctl_table);
if (!hdr)
- pr_warn("seccomp: sysctl registration failed\n");
+ pr_warn("sysctl registration failed\n");
else
kmemleak_not_leak(hdr);