Commit 3f256744 authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

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

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: default avatarWililam Irwin <wli@holomorphy.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3604ed66
......@@ -838,12 +838,12 @@ static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset)
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 @@ static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset)
}
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment