diff options
author | 2020-07-31 10:17:23 +0200 | |
---|---|---|
committer | 2020-08-24 15:10:23 -0700 | |
commit | 178a1877d782c034f466edd80e30a107af5469df (patch) | |
tree | b64bb0b7c4f31a8b8e48c510129a68154965e7e3 /kernel/kcsan/selftest.c | |
parent | kcsan: Show message if enabled early (diff) | |
download | linux-178a1877d782c034f466edd80e30a107af5469df.tar.gz linux-178a1877d782c034f466edd80e30a107af5469df.tar.bz2 linux-178a1877d782c034f466edd80e30a107af5469df.zip |
kcsan: Use pr_fmt for consistency
Use the same pr_fmt throughout for consistency. [ The only exception is
report.c, where the format must be kept precisely as-is. ]
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/kcsan/selftest.c')
-rw-r--r-- | kernel/kcsan/selftest.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/kcsan/selftest.c b/kernel/kcsan/selftest.c index d26a052d3383..d98bc208d06d 100644 --- a/kernel/kcsan/selftest.c +++ b/kernel/kcsan/selftest.c @@ -1,5 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 +#define pr_fmt(fmt) "kcsan: " fmt + #include <linux/init.h> #include <linux/kernel.h> #include <linux/printk.h> @@ -116,16 +118,16 @@ static int __init kcsan_selftest(void) if (do_test()) \ ++passed; \ else \ - pr_err("KCSAN selftest: " #do_test " failed"); \ + pr_err("selftest: " #do_test " failed"); \ } while (0) RUN_TEST(test_requires); RUN_TEST(test_encode_decode); RUN_TEST(test_matching_access); - pr_info("KCSAN selftest: %d/%d tests passed\n", passed, total); + pr_info("selftest: %d/%d tests passed\n", passed, total); if (passed != total) - panic("KCSAN selftests failed"); + panic("selftests failed"); return 0; } postcore_initcall(kcsan_selftest); |