Skip to content

Commit 60192db

Browse files
dlunevaegl
authored andcommitted
[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: Denis V. Lunev <den@openvz.org> Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent fca515f commit 60192db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/ia64/kernel/cpufreq/acpi-cpufreq.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ processor_set_pstate (
5151
retval = ia64_pal_set_pstate((u64)value);
5252

5353
if (retval) {
54-
dprintk("Failed to set freq to 0x%x, with error 0x%x\n",
54+
dprintk("Failed to set freq to 0x%x, with error 0x%lx\n",
5555
value, retval);
5656
return -ENODEV;
5757
}
@@ -74,7 +74,7 @@ processor_get_pstate (
7474

7575
if (retval)
7676
dprintk("Failed to get current freq with "
77-
"error 0x%x, idx 0x%x\n", retval, *value);
77+
"error 0x%lx, idx 0x%x\n", retval, *value);
7878

7979
return (int)retval;
8080
}

0 commit comments

Comments
 (0)