Skip to contentSkip to conversation

pci: Fix printf format for regions

PATCH In review Pali Rohár 3 participants 3 messages Oct 8, 2021 – Oct 15, 2021 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: Fix printf format for regions

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

---
 drivers/pci/pci_auto_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci_auto_common.c +1 -1
index 5e7f3dbd10b5..b9a4aef1ecf8 100644
@@ -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,
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Pali Rohár

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

Thanks,
Stefan

Quoted 10 lines
---
  drivers/pci/pci_auto_common.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci_auto_common.c +0 -0
index 5e7f3dbd10b5..b9a4aef1ecf8 100644

drivers/pci/pci_auto_common.c static void pciauto_show_region(const char *name, struct pci_region *region) · line 82

Quoted 8 lines
drivers/pci/pci_auto_common.c +1 -1
@@ -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,

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]