Skip to contentSkip to conversation

powerpc/sysdev/tsi108: Remove redundant 0x prefix in tsi108_setup_pci()

PATCH In review Thorsten Blum 2 participants 2 messages Nov 4 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/sysdev/tsi108: Remove redundant 0x prefix in tsi108_setup_pci()

The %pa format specifier already includes the 0x prefix. Remove the redundant prefix to avoid printing 0x0x.

Fixes 55d8bd02cc1b ("powerpc/sysdev/tsi108: fix resource printk format warnings")
---
 arch/powerpc/sysdev/tsi108_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/sysdev/tsi108_pci.c +1 -1
index 07d0f6a83879..dcc5e3e85dbd 100644
@@ -217,7 +217,7 @@ int __init tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary)
 
 	(hose)->ops = &tsi108_direct_pci_ops;
 
-	pr_info("Found tsi108 PCI host bridge at 0x%pa. Firmware bus number: %d->%d\n",
+	pr_info("Found tsi108 PCI host bridge at %pa. Firmware bus number: %d->%d\n",
 		&rsrc.start, hose->first_busno, hose->last_busno);
 
 	/* Interpret the "ranges" property */
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Thorsten Blum

The %pa format specifier already includes the 0x prefix. Remove the redundant prefix to avoid printing 0x0x.

Fixes 55d8bd02cc1b ("powerpc/sysdev/tsi108: fix resource printk format warnings")

Thanks.

Quoted 17 lines
---
 arch/powerpc/sysdev/tsi108_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/sysdev/tsi108_pci.c +1 -1
index 07d0f6a83879..dcc5e3e85dbd 100644
@@ -217,7 +217,7 @@ int __init tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary)
 
 	(hose)->ops = &tsi108_direct_pci_ops;
 
-	pr_info("Found tsi108 PCI host bridge at 0x%pa. Firmware bus number: %d->%d\n",
+	pr_info("Found tsi108 PCI host bridge at %pa. Firmware bus number: %d->%d\n",
 		&rsrc.start, hose->first_busno, hose->last_busno);
 
 	/* Interpret the "ranges" property */
Signature · 1 line
~Randy