Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ntb_tool: Fix printk format

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

Fixes: 7f46c8b3a5523 ("NTB: ntb_tool: Add full multi-port NTB API support")
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Jon Mason <jdmason@kudzu.us>

authored by

Helge Deller and committed by
Jon Mason
2ef97a6c 99a06056

+7 -7
+7 -7
drivers/ntb/test/ntb_tool.c
··· 678 678 &inmw->dma_base); 679 679 680 680 off += scnprintf(buf + off, buf_size - off, 681 - "Window Size \t%pa[p]\n", 681 + "Window Size \t%pap\n", 682 682 &inmw->size); 683 683 684 684 off += scnprintf(buf + off, buf_size - off, 685 - "Alignment \t%pa[p]\n", 685 + "Alignment \t%pap\n", 686 686 &addr_align); 687 687 688 688 off += scnprintf(buf + off, buf_size - off, 689 - "Size Alignment \t%pa[p]\n", 689 + "Size Alignment \t%pap\n", 690 690 &size_align); 691 691 692 692 off += scnprintf(buf + off, buf_size - off, 693 - "Size Max \t%pa[p]\n", 693 + "Size Max \t%pap\n", 694 694 &size_max); 695 695 696 696 ret = simple_read_from_buffer(ubuf, size, offp, buf, off); ··· 907 907 "Virtual address \t0x%pK\n", outmw->io_base); 908 908 909 909 off += scnprintf(buf + off, buf_size - off, 910 - "Phys Address \t%pa[p]\n", &map_base); 910 + "Phys Address \t%pap\n", &map_base); 911 911 912 912 off += scnprintf(buf + off, buf_size - off, 913 - "Mapping Size \t%pa[p]\n", &map_size); 913 + "Mapping Size \t%pap\n", &map_size); 914 914 915 915 off += scnprintf(buf + off, buf_size - off, 916 916 "Translation Address \t0x%016llx\n", outmw->tr_base); 917 917 918 918 off += scnprintf(buf + off, buf_size - off, 919 - "Window Size \t%pa[p]\n", &outmw->size); 919 + "Window Size \t%pap\n", &outmw->size); 920 920 921 921 ret = simple_read_from_buffer(ubuf, size, offp, buf, off); 922 922 kfree(buf);