[PATCH] pci: Fix printf format for regions

Pali Rohár pali at kernel.org
Fri Oct 8 17:01:24 CEST 2021


Correct printf format for unsigned long long is %llx and not %llxx.

Signed-off-by: Pali Rohár <pali at kernel.org>
---
 drivers/pci/pci_auto_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c
index 5e7f3dbd10b5..b9a4aef1ecf8 100644
--- a/drivers/pci/pci_auto_common.c
+++ b/drivers/pci/pci_auto_common.c
@@ -76,7 +76,7 @@ static void pciauto_show_region(const char *name, struct pci_region *region)
 {
 	pciauto_region_init(region);
 	debug("PCI Autoconfig: Bus %s region: [%llx-%llx],\n"
-	      "\t\tPhysical Memory [%llx-%llxx]\n", name,
+	      "\t\tPhysical Memory [%llx-%llx]\n", name,
 	      (unsigned long long)region->bus_start,
 	      (unsigned long long)(region->bus_start + region->size - 1),
 	      (unsigned long long)region->phys_start,
-- 
2.20.1



More information about the U-Boot mailing list