Messages in this thread Patch in this message | | | Date | Wed, 29 Dec 2004 15:57:54 -0800 | From | "Luck, Tony" <> | Subject | 3 warnings from drivers/acpi/processor_idle.c |
| |
Compiling on ia64 I see: drivers/acpi/processor_idle.c:846: warning: int format, different type arg (arg 3) drivers/acpi/processor_idle.c:877: warning: int format, different type arg (arg 3) drivers/acpi/processor_idle.c:884: warning: int format, different type arg (arg 3)
This is the result of using "%d" to print the difference between two pointers.
Use "%zd" instead.
Signed-off-by: Tony Luck <tony.luck@intel.com>
===== drivers/acpi/processor_idle.c 1.15 vs edited ===== --- 1.15/drivers/acpi/processor_idle.c 2004-12-23 05:39:58 -08:00 +++ edited/drivers/acpi/processor_idle.c 2004-12-29 15:45:49 -08:00 @@ -838,7 +838,7 @@ if (!pr) goto end; - seq_printf(seq, "active state: C%d\n" + seq_printf(seq, "active state: C%zd\n" "max_cstate: C%d\n" "bus master activity: %08x\n", pr->power.state ? pr->power.state - pr->power.states : 0, @@ -872,14 +872,14 @@ } if (pr->power.states[i].promotion.state) - seq_printf(seq, "promotion[C%d] ", + seq_printf(seq, "promotion[C%zd] ", (pr->power.states[i].promotion.state - pr->power.states)); else seq_puts(seq, "promotion[--] "); if (pr->power.states[i].demotion.state) - seq_printf(seq, "demotion[C%d] ", + seq_printf(seq, "demotion[C%zd] ", (pr->power.states[i].demotion.state - pr->power.states)); else - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |