Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next
[firefly-linux-kernel-4.4.55.git] / lib / atomic64_test.c
index 00bca223d1e1e6552bbdd0dd7c69fef2ff48c60d..0211d30d8c390f06299c27a43285ee83748c6944 100644 (file)
@@ -8,6 +8,9 @@
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
  */
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/init.h>
 #include <linux/bug.h>
 #include <linux/kernel.h>
@@ -146,18 +149,18 @@ static __init int test_atomic64(void)
        BUG_ON(v.counter != r);
 
 #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
-              "x86-64",
+               "x86-64",
 #elif defined(CONFIG_X86_CMPXCHG64)
-              "i586+",
+               "i586+",
 #else
-              "i386+",
+               "i386+",
 #endif
               boot_cpu_has(X86_FEATURE_CX8) ? "with" : "without",
               boot_cpu_has(X86_FEATURE_XMM) ? "with" : "without");
 #else
-       printk(KERN_INFO "atomic64 test passed\n");
+       pr_info("passed\n");
 #endif
 
        return 0;