acpi_pm clccksource: fix printk format warning
PATCH 1/1 acpi_pm clccksource: fix printk format warning
From: Randy Dunlap <[email protected]>
cc: [email protected]
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 <[email protected]>
--- drivers/clocksource/acpi_pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clocksource/acpi_pm.c +2 -2
@@ -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%04lx\n" , + (unsigned int )pmtmr_ioport, base); pmtmr_ioport = base;return 1 ;
---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/