提交 60192db8 编写于 作者: D Denis V. Lunev 提交者: Tony Luck

[IA64] improper printk format in acpi-cpufreq

When dprintk is enabled the following warnings are generated:
arch/ia64/kernel/cpufreq/acpi-cpufreq.c: In function 'processor_set_pstate':
arch/ia64/kernel/cpufreq/acpi-cpufreq.c:54: warning: format '%x' expects type 'unsigned int', but argumen
t 3 has type 's64'
arch/ia64/kernel/cpufreq/acpi-cpufreq.c: In function 'processor_get_pstate':
arch/ia64/kernel/cpufreq/acpi-cpufreq.c:76: warning: format '%x' expects type 'unsigned int', but argumen
t 2 has type 's64'
Signed-off-by: NDenis V. Lunev <den@openvz.org>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 fca515fb
...@@ -51,7 +51,7 @@ processor_set_pstate ( ...@@ -51,7 +51,7 @@ processor_set_pstate (
retval = ia64_pal_set_pstate((u64)value); retval = ia64_pal_set_pstate((u64)value);
if (retval) { if (retval) {
dprintk("Failed to set freq to 0x%x, with error 0x%x\n", dprintk("Failed to set freq to 0x%x, with error 0x%lx\n",
value, retval); value, retval);
return -ENODEV; return -ENODEV;
} }
...@@ -74,7 +74,7 @@ processor_get_pstate ( ...@@ -74,7 +74,7 @@ processor_get_pstate (
if (retval) if (retval)
dprintk("Failed to get current freq with " dprintk("Failed to get current freq with "
"error 0x%x, idx 0x%x\n", retval, *value); "error 0x%lx, idx 0x%x\n", retval, *value);
return (int)retval; return (int)retval;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册