Skip to contentSkip to conversation

powerpc/mpc52xx: Remove redundant 0x prefix in mpc52xx_pci_setup()

PATCH In review Thorsten Blum 2 participants 2 messages Nov 4

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/mpc52xx: Remove redundant 0x prefix in mpc52xx_pci_setup()

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

Fixes 59510820fff7 ("powerpc/mpc52xx: Fix some pr_debug() issues")
---
 arch/powerpc/platforms/52xx/mpc52xx_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/52xx/mpc52xx_pci.c +1 -1
index 0ca4401ba781..a2e53cacd15b 100644
@@ -288,7 +288,7 @@ mpc52xx_pci_setup(struct pci_controller *hose,
 		printk(KERN_ERR "%s: Didn't find IO resources\n", __FILE__);
 		return;
 	}
-	pr_debug(".io_resource = %pr .io_base_phys=0x%pa\n",
+	pr_debug(".io_resource = %pr .io_base_phys=%pa\n",
 		 res, &hose->io_base_phys);
 	out_be32(&pci_regs->iw2btar,
 	         MPC52xx_PCI_IWBTAR_TRANSLATION(hose->io_base_phys,
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 59510820fff7 ("powerpc/mpc52xx: Fix some pr_debug() issues")

Thanks.

Quoted 17 lines
---
 arch/powerpc/platforms/52xx/mpc52xx_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/52xx/mpc52xx_pci.c +1 -1
index 0ca4401ba781..a2e53cacd15b 100644
@@ -288,7 +288,7 @@ mpc52xx_pci_setup(struct pci_controller *hose,
 		printk(KERN_ERR "%s: Didn't find IO resources\n", __FILE__);
 		return;
 	}
-	pr_debug(".io_resource = %pr .io_base_phys=0x%pa\n",
+	pr_debug(".io_resource = %pr .io_base_phys=%pa\n",
 		 res, &hose->io_base_phys);
 	out_be32(&pci_regs->iw2btar,
 	         MPC52xx_PCI_IWBTAR_TRANSLATION(hose->io_base_phys,
Signature · 1 line
~Randy