Fix printk format warning:
drivers/watchdog/wdt_pci.c:652: warning: format '%04x' expects type 'unsigned int', but argument 2 has type 'resource_size_t'
and then use resource_size_t for the "io" variable as well
so that it won't be truncated.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
static DEFINE_SPINLOCK(wdtpci_lock);
static char expect_close;
static DEFINE_SPINLOCK(wdtpci_lock);
static char expect_close;
+static resource_size_t io;
static int irq;
/* Default timeout */
static int irq;
/* Default timeout */
}
if (pci_request_region(dev, 2, "wdt_pci")) {
}
if (pci_request_region(dev, 2, "wdt_pci")) {
- printk(KERN_ERR PFX "I/O address 0x%04x already in use\n",
- pci_resource_start(dev, 2));
+ printk(KERN_ERR PFX "I/O address 0x%llx already in use\n",
+ (unsigned long long)pci_resource_start(dev, 2));
- "PCI-WDT500/501 (PCI-WDG-CSM) driver 0.10 at 0x%04x (Interrupt %d)\n",
- io, irq);
+ "PCI-WDT500/501 (PCI-WDG-CSM) driver 0.10 at 0x%llx (Interrupt %d)\n",
+ (unsigned long long)io, irq);
/* Check that the heartbeat value is within its range;
if not reset to the default */
/* Check that the heartbeat value is within its range;
if not reset to the default */