Skip to content

Commit e68f9d4

Browse files
committed
seccomp: Use pr_fmt
Avoid open-coding "seccomp: " prefixes for pr_*() calls. Signed-off-by: Kees Cook <[email protected]>
1 parent 81a0c8b commit e68f9d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/seccomp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Mode 2 allows user-defined system call filters in the form
1414
* of Berkeley Packet Filters/Linux Socket Filters.
1515
*/
16+
#define pr_fmt(fmt) "seccomp: " fmt
1617

1718
#include <linux/refcount.h>
1819
#include <linux/audit.h>
@@ -1873,7 +1874,7 @@ static int __init seccomp_sysctl_init(void)
18731874

18741875
hdr = register_sysctl_paths(seccomp_sysctl_path, seccomp_sysctl_table);
18751876
if (!hdr)
1876-
pr_warn("seccomp: sysctl registration failed\n");
1877+
pr_warn("sysctl registration failed\n");
18771878
else
18781879
kmemleak_not_leak(hdr);
18791880

0 commit comments

Comments
 (0)