public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] acpi: processor_idle format warning
@ 2005-01-10 22:52 Randy.Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2005-01-10 22:52 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: len.brown-ral2JQCrhuEAvxtiuMwx3w


Linux 2.6.10-bk13

Fix several format warnings in processor_idle.c:
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)

Signed-off-by: Randy Dunlap <rddunlap-3NddpPZAyC0@public.gmane.org>

diffstat:=
 drivers/acpi/processor_idle.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff -Naurp ./drivers/acpi/processor_idle.c~acpi_types ./drivers/acpi/processor_idle.c
--- ./drivers/acpi/processor_idle.c~acpi_types	2005-01-10 10:38:39.479503496 -0800
+++ ./drivers/acpi/processor_idle.c	2005-01-10 11:37:18.142585400 -0800
@@ -839,9 +839,9 @@ static int acpi_processor_power_seq_show
 		goto end;
 
 	seq_printf(seq, "active state:            C%d\n"
-			"max_cstate:              C%d\n"
+			"max_cstate:              C%u\n"
 			"bus master activity:     %08x\n",
-			pr->power.state ? pr->power.state - pr->power.states : 0,
+			pr->power.state ? (int)(pr->power.state - pr->power.states) : 0,
 			max_cstate,
 			pr->power.bm_activity);
 
@@ -873,14 +873,14 @@ static int acpi_processor_power_seq_show
 
 		if (pr->power.states[i].promotion.state)
 			seq_printf(seq, "promotion[C%d] ",
-				(pr->power.states[i].promotion.state -
+				(int)(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] ",
-				(pr->power.states[i].demotion.state -
+				(int)(pr->power.states[i].demotion.state -
 				 pr->power.states));
 		else
 			seq_puts(seq, "demotion[--] ");
@@ -920,7 +920,7 @@ int acpi_processor_power_init(struct acp
 	if (!first_run) {
 		dmi_check_system(processor_power_dmi_table);
 		if (max_cstate < ACPI_C_STATES_MAX)
-			printk(KERN_NOTICE "ACPI: processor limited to max C-state %d\n", max_cstate);
+			printk(KERN_NOTICE "ACPI: processor limited to max C-state %u\n", max_cstate);
 		first_run++;
 	}
 

---


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-10 22:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-10 22:52 [PATCH] acpi: processor_idle format warning Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox