Merge tag 'afs-fixes-20200609' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowe...
[linux-block.git] / lib / percpu-refcount.c
index 8d092609928e48193f5780740dd9d9734b5d9397..0ba686b8fe579ee426366df11f4e95213e837afc 100644 (file)
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-#define pr_fmt(fmt) "%s: " fmt "\n", __func__
+#define pr_fmt(fmt) "%s: " fmt, __func__
 
 #include <linux/kernel.h>
 #include <linux/sched.h>
@@ -141,8 +141,8 @@ static void percpu_ref_switch_to_atomic_rcu(struct rcu_head *rcu)
        for_each_possible_cpu(cpu)
                count += *per_cpu_ptr(percpu_count, cpu);
 
-       pr_debug("global %ld percpu %ld",
-                atomic_long_read(&ref->count), (long)count);
+       pr_debug("global %lu percpu %lu\n",
+                atomic_long_read(&ref->count), count);
 
        /*
         * It's crucial that we sum the percpu counters _before_ adding the sum