diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 19:12:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:19 -0400 |
commit | b3b16d284a4121a9eb294ec0012928591993b37c (patch) | |
tree | 8211061630aa41fb2c49f54e9cfcd33fa212c8c5 | |
parent | c56ba70331d9f3c1ea77f8053095fb05fe773f50 (diff) |
lib/atomic64_test.c: convert printk(KERN_INFO to pr_info
Convert printk to current pr_foo() logging functions.
Also add pr_fmt based on KBUILD_MODNAME to avoid repeating prefix. Prefix
is now "atomic64_test: "
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Luca Barbieri <luca@luca-barbieri.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | lib/atomic64_test.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/atomic64_test.c b/lib/atomic64_test.c index 00bca223d1e1..0211d30d8c39 100644 --- a/lib/atomic64_test.c +++ b/lib/atomic64_test.c | |||
@@ -8,6 +8,9 @@ | |||
8 | * the Free Software Foundation; either version 2 of the License, or | 8 | * the Free Software Foundation; either version 2 of the License, or |
9 | * (at your option) any later version. | 9 | * (at your option) any later version. |
10 | */ | 10 | */ |
11 | |||
12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
13 | |||
11 | #include <linux/init.h> | 14 | #include <linux/init.h> |
12 | #include <linux/bug.h> | 15 | #include <linux/bug.h> |
13 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
@@ -146,18 +149,18 @@ static __init int test_atomic64(void) | |||
146 | BUG_ON(v.counter != r); | 149 | BUG_ON(v.counter != r); |
147 | 150 | ||
148 | #ifdef CONFIG_X86 | 151 | #ifdef CONFIG_X86 |
149 | printk(KERN_INFO "atomic64 test passed for %s platform %s CX8 and %s SSE\n", | 152 | pr_info("passed for %s platform %s CX8 and %s SSE\n", |
150 | #ifdef CONFIG_X86_64 | 153 | #ifdef CONFIG_X86_64 |
151 | "x86-64", | 154 | "x86-64", |
152 | #elif defined(CONFIG_X86_CMPXCHG64) | 155 | #elif defined(CONFIG_X86_CMPXCHG64) |
153 | "i586+", | 156 | "i586+", |
154 | #else | 157 | #else |
155 | "i386+", | 158 | "i386+", |
156 | #endif | 159 | #endif |
157 | boot_cpu_has(X86_FEATURE_CX8) ? "with" : "without", | 160 | boot_cpu_has(X86_FEATURE_CX8) ? "with" : "without", |
158 | boot_cpu_has(X86_FEATURE_XMM) ? "with" : "without"); | 161 | boot_cpu_has(X86_FEATURE_XMM) ? "with" : "without"); |
159 | #else | 162 | #else |
160 | printk(KERN_INFO "atomic64 test passed\n"); | 163 | pr_info("passed\n"); |
161 | #endif | 164 | #endif |
162 | 165 | ||
163 | return 0; | 166 | return 0; |