Skip to content

Commit

Permalink
ntb_perf: Fix printk format
Browse files Browse the repository at this point in the history
[ Upstream commit 1501ae7 ]

The correct printk format is %pa or %pap, but not %pa[p].

Fixes: 99a0605 ("NTB: ntb_perf: Fix address err in perf_copy_chunk")
Signed-off-by: Max Hawking <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
Max Hawking authored and gregkh committed Oct 17, 2024
1 parent a429158 commit 85a84de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ntb/test/ntb_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 85a84de

Please sign in to comment.