Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
Linus Torvalds
b3b16d28 c56ba703

+8 -5
+8 -5
lib/atomic64_test.c
··· 8 8 * the Free Software Foundation; either version 2 of the License, or 9 9 * (at your option) any later version. 10 10 */ 11 + 12 + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 13 + 11 14 #include <linux/init.h> 12 15 #include <linux/bug.h> 13 16 #include <linux/kernel.h> ··· 149 146 BUG_ON(v.counter != r); 150 147 151 148 #ifdef CONFIG_X86 152 - printk(KERN_INFO "atomic64 test passed for %s platform %s CX8 and %s SSE\n", 149 + pr_info("passed for %s platform %s CX8 and %s SSE\n", 153 150 #ifdef CONFIG_X86_64 154 - "x86-64", 151 + "x86-64", 155 152 #elif defined(CONFIG_X86_CMPXCHG64) 156 - "i586+", 153 + "i586+", 157 154 #else 158 - "i386+", 155 + "i386+", 159 156 #endif 160 157 boot_cpu_has(X86_FEATURE_CX8) ? "with" : "without", 161 158 boot_cpu_has(X86_FEATURE_XMM) ? "with" : "without"); 162 159 #else 163 - printk(KERN_INFO "atomic64 test passed\n"); 160 + pr_info("passed\n"); 164 161 #endif 165 162 166 163 return 0;