Commit b3b16d28 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

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: default avatarFabian Frederick <fabf@skynet.be>
Cc: Luca Barbieri <luca@luca-barbieri.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c56ba703
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
*/ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/init.h> #include <linux/init.h>
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/kernel.h> #include <linux/kernel.h>
...@@ -146,7 +149,7 @@ static __init int test_atomic64(void) ...@@ -146,7 +149,7 @@ static __init int test_atomic64(void)
BUG_ON(v.counter != r); BUG_ON(v.counter != r);
#ifdef CONFIG_X86 #ifdef CONFIG_X86
printk(KERN_INFO "atomic64 test passed for %s platform %s CX8 and %s SSE\n", pr_info("passed for %s platform %s CX8 and %s SSE\n",
#ifdef CONFIG_X86_64 #ifdef CONFIG_X86_64
"x86-64", "x86-64",
#elif defined(CONFIG_X86_CMPXCHG64) #elif defined(CONFIG_X86_CMPXCHG64)
...@@ -157,7 +160,7 @@ static __init int test_atomic64(void) ...@@ -157,7 +160,7 @@ static __init int test_atomic64(void)
boot_cpu_has(X86_FEATURE_CX8) ? "with" : "without", boot_cpu_has(X86_FEATURE_CX8) ? "with" : "without",
boot_cpu_has(X86_FEATURE_XMM) ? "with" : "without"); boot_cpu_has(X86_FEATURE_XMM) ? "with" : "without");
#else #else
printk(KERN_INFO "atomic64 test passed\n"); pr_info("passed\n");
#endif #endif
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment