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

rapidio: remove unnecessary 0x prefixes before %pa extension uses

Patch series "RapidIO subsystem updates".

This set of patches contains RapidIO subsystem fixes and updates that
have been made since kernel v4.6. The most significant update brings
changes related to the latest revision of RapidIO specification
(rev.3.x) and introduction of next generation of RapidIO switches by IDT
(RXS1632 and RXS2448).

This patch (of 13):

This is RapidIO part of the original patch submitted by Joe Perches.
(see: https://lkml.org/lkml/2016/3/5/19)

Since commit 3cab1e711297 ("lib/vsprintf: refactor duplicate code
to special_hex_number()") %pa uses have been output with a 0x prefix.

These 0x prefixes in the formats are unnecessary.

Link: http://lkml.kernel.org/r/1469125134-16523-2-git-send-email-alexandre.bounine@idt.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Andre van Herk <andre.van.herk@prodrive-technologies.com>
Cc: Barry Wood <barry.wood@idt.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Joe Perches and committed by
Linus Torvalds
ea87b8e1 b6e8d4aa

+6 -6
+2 -2
drivers/rapidio/devices/rio_mport_cdev.c
··· 2242 2242 { 2243 2243 struct rio_mport_mapping *map = vma->vm_private_data; 2244 2244 2245 - rmcd_debug(MMAP, "0x%pad", &map->phys_addr); 2245 + rmcd_debug(MMAP, "%pad", &map->phys_addr); 2246 2246 kref_get(&map->ref); 2247 2247 } 2248 2248 ··· 2250 2250 { 2251 2251 struct rio_mport_mapping *map = vma->vm_private_data; 2252 2252 2253 - rmcd_debug(MMAP, "0x%pad", &map->phys_addr); 2253 + rmcd_debug(MMAP, "%pad", &map->phys_addr); 2254 2254 mutex_lock(&map->md->buf_mutex); 2255 2255 kref_put(&map->ref, mport_release_mapping); 2256 2256 mutex_unlock(&map->md->buf_mutex);
+4 -4
drivers/rapidio/devices/tsi721.c
··· 1101 1101 ibw_start = lstart & ~(ibw_size - 1); 1102 1102 1103 1103 tsi_debug(IBW, &priv->pdev->dev, 1104 - "Direct (RIO_0x%llx -> PCIe_0x%pad), size=0x%x, ibw_start = 0x%llx", 1104 + "Direct (RIO_0x%llx -> PCIe_%pad), size=0x%x, ibw_start = 0x%llx", 1105 1105 rstart, &lstart, size, ibw_start); 1106 1106 1107 1107 while ((lstart + size) > (ibw_start + ibw_size)) { ··· 1120 1120 1121 1121 } else { 1122 1122 tsi_debug(IBW, &priv->pdev->dev, 1123 - "Translated (RIO_0x%llx -> PCIe_0x%pad), size=0x%x", 1123 + "Translated (RIO_0x%llx -> PCIe_%pad), size=0x%x", 1124 1124 rstart, &lstart, size); 1125 1125 1126 1126 if (!is_power_of_2(size) || size < 0x1000 || ··· 1215 1215 priv->ibwin_cnt--; 1216 1216 1217 1217 tsi_debug(IBW, &priv->pdev->dev, 1218 - "Configured IBWIN%d (RIO_0x%llx -> PCIe_0x%pad), size=0x%llx", 1218 + "Configured IBWIN%d (RIO_0x%llx -> PCIe_%pad), size=0x%llx", 1219 1219 i, ibw_start, &loc_start, ibw_size); 1220 1220 1221 1221 return 0; ··· 1237 1237 int i; 1238 1238 1239 1239 tsi_debug(IBW, &priv->pdev->dev, 1240 - "Unmap IBW mapped to PCIe_0x%pad", &lstart); 1240 + "Unmap IBW mapped to PCIe_%pad", &lstart); 1241 1241 1242 1242 /* Search for matching active inbound translation window */ 1243 1243 for (i = 0; i < TSI721_IBWIN_NUM; i++) {