[5/8] silence numerous size_t warnings in drivers/acpi/processor_idle.c

From: William Lee Irwin III
Date: Mon Jan 03 2005 - 13:00:24 EST


Multiple format -related warnings arise from size_t issues. This
patch peppers the seq_printf()'s with 'z' qualifiers and casts to
silence them all.

Signed-off-by: Wililam Irwin <wli@xxxxxxxxxxxxxx>

Index: mm1-2.6.10/drivers/acpi/processor_idle.c
===================================================================
--- mm1-2.6.10.orig/drivers/acpi/processor_idle.c 2005-01-03 06:45:54.000000000 -0800
+++ mm1-2.6.10/drivers/acpi/processor_idle.c 2005-01-03 08:02:46.000000000 -0800
@@ -838,12 +838,12 @@
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,
max_cstate,
- pr->power.bm_activity);
+ (unsigned)pr->power.bm_activity);

seq_puts(seq, "states:\n");

@@ -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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/