acpi_pm clccksource: fix printk format warning
authorRandy Dunlap <randy.dunlap@oracle.com>
Fri, 11 Jul 2008 19:57:31 +0000 (12:57 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 12 Jul 2008 03:29:08 +0000 (05:29 +0200)
Fix printk format warning in acpi_pm clocksource:

linux-next-20080711/drivers/clocksource/acpi_pm.c:231: warning: format '%04lx' expects type 'long unsigned int', but argument 2 has type 'u32'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: akpm <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/clocksource/acpi_pm.c

index 3baee020afc29802a648fa45af5284b0aa75b7ce..bcd7d0e429e86dff2fdd43fe192e44dfecb09e85 100644 (file)
@@ -227,8 +227,8 @@ static int __init parse_pmtmr(char *arg)
        if (strict_strtoul(arg, 16, &base))
                return -EINVAL;
 
-       printk(KERN_INFO "PMTMR IOPort override: 0x%04lx -> 0x%04lx\n",
-              pmtmr_ioport, base);
+       printk(KERN_INFO "PMTMR IOPort override: 0x%04x -> 0x%04x\n",
+              (unsigned int)pmtmr_ioport, base);
        pmtmr_ioport = base;
 
        return 1;