Skip to contentSkip to conversation

pci: Fix printk warnings in setup-bus.c

PATCH New Johann Felix Soden 1 participant 1 message Aug 22, 2008 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: Fix printk warnings in setup-bus.c

From: Johann Felix Soden <[email protected]>

Fix printk format warnings:
drivers/pci/setup-bus.c: In function 'pci_bus_dump_res':
drivers/pci/setup-bus.c:542: warning: format '%llx' expects type 'long long unsigned int', but argument 5 has type 'resource_size_t' drivers/pci/setup-bus.c:542: warning: format '%llx' expects type 'long long unsigned int', but argument 6 has type 'resource_size_t'

---
 drivers/pci/setup-bus.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
drivers/pci/setup-bus.c +5 -1
index 82634a2..c6ea4e9 100644
@@ -539,7 +539,11 @@ static void pci_bus_dump_res(struct pci_bus *bus)
                 if (!res)
                         continue;
 
-		printk(KERN_INFO "bus: %02x index %x %s: [%llx, %llx]\n", bus->number, i, (res->flags & IORESOURCE_IO)? "io port":"mmio", res->start, res->end);
+		printk(KERN_INFO "bus: %02x index %x %s: [%llx, %llx]\n",
+			bus->number, i,
+			(res->flags & IORESOURCE_IO) ? "io port" : "mmio",
+			(unsigned long long) res->start,
+			(unsigned long long) res->end);
         }
 }
 
Signature · 1 line
1.5.6.3