aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2009-08-07 18:02:00 -0400
committerWim Van Sebroeck <wim@iguana.be>2009-09-18 04:39:01 -0400
commitd1833c21256e7b0ac3997493d31f0f3926f6d592 (patch)
treecaffb6f9800632545fefaa0db81f4fc957bdba89 /drivers/watchdog
parent119d3e56e7c82a73d27b5dd010c52dab1bc9f846 (diff)
[WATCHDOG] wdt_pci: fix printk and variable type
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/wdt_pci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/watchdog/wdt_pci.c b/drivers/watchdog/wdt_pci.c
index 02b6bdaa2dee..f368dd87083a 100644
--- a/drivers/watchdog/wdt_pci.c
+++ b/drivers/watchdog/wdt_pci.c
@@ -80,7 +80,7 @@ static unsigned long open_lock;
80static DEFINE_SPINLOCK(wdtpci_lock); 80static DEFINE_SPINLOCK(wdtpci_lock);
81static char expect_close; 81static char expect_close;
82 82
83static int io; 83static resource_size_t io;
84static int irq; 84static int irq;
85 85
86/* Default timeout */ 86/* Default timeout */
@@ -648,8 +648,8 @@ static int __devinit wdtpci_init_one(struct pci_dev *dev,
648 } 648 }
649 649
650 if (pci_request_region(dev, 2, "wdt_pci")) { 650 if (pci_request_region(dev, 2, "wdt_pci")) {
651 printk(KERN_ERR PFX "I/O address 0x%04x already in use\n", 651 printk(KERN_ERR PFX "I/O address 0x%llx already in use\n",
652 pci_resource_start(dev, 2)); 652 (unsigned long long)pci_resource_start(dev, 2));
653 goto out_pci; 653 goto out_pci;
654 } 654 }
655 655
@@ -663,8 +663,8 @@ static int __devinit wdtpci_init_one(struct pci_dev *dev,
663 } 663 }
664 664
665 printk(KERN_INFO 665 printk(KERN_INFO
666 "PCI-WDT500/501 (PCI-WDG-CSM) driver 0.10 at 0x%04x (Interrupt %d)\n", 666 "PCI-WDT500/501 (PCI-WDG-CSM) driver 0.10 at 0x%llx (Interrupt %d)\n",
667 io, irq); 667 (unsigned long long)io, irq);
668 668
669 /* Check that the heartbeat value is within its range; 669 /* Check that the heartbeat value is within its range;
670 if not reset to the default */ 670 if not reset to the default */