]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ntb_perf: Fix printk format
authorMax Hawking <maxahawking@sonnenkinder.org>
Mon, 9 Oct 2023 03:45:16 +0000 (20:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:07:55 +0000 (15:07 +0200)
[ Upstream commit 1501ae7479c8d0f66efdbfdc9ae8d6136cefbd37 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ntb/test/ntb_perf.c

index 65e1e5cf1b29a6dd0b0573e263f273d7644c2754..5a7a02408166efc487bfe52725aa1d2a314ae859 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);