]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ntb_perf: Fix printk format
authorMax Hawking <maxahawking@sonnenkinder.org>
Mon, 9 Oct 2023 03:45:16 +0000 (20:45 -0700)
committerJon Mason <jdmason@kudzu.us>
Fri, 20 Sep 2024 14:50:38 +0000 (10:50 -0400)
The correct printk format is %pa or %pap, but not %pa[p].

Fixes: 99a06056124d ("NTB: ntb_perf: Fix address err in perf_copy_chunk")
Signed-off-by: Max Hawking <maxahawking@sonnenkinder.org>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c

index 553f1f46bc664ff92295320001cabe7266010c88..72bc1d017a46eea394ef3dbebb6e9f0bb9d4a312 100644 (file)
@@ -1227,7 +1227,7 @@ static ssize_t perf_dbgfs_read_info(struct file *filep, char __user *ubuf,
                        "\tOut buffer addr 0x%pK\n", peer->outbuf);
 
                pos += scnprintf(buf + pos, buf_size - pos,
-                       "\tOut buff phys addr %pa[p]\n", &peer->out_phys_addr);
+                       "\tOut buff phys addr %pap\n", &peer->out_phys_addr);
 
                pos += scnprintf(buf + pos, buf_size - pos,
                        "\tOut buffer size %pa\n", &peer->outbuf_size);