From: "Randy.Dunlap" <rddunlap-3NddpPZAyC0@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Subject: [PATCH] acpi: processor_idle format warning
Date: Mon, 10 Jan 2005 14:52:03 -0800 [thread overview]
Message-ID: <20050110145203.4e4c3a89.rddunlap@osdl.org> (raw)
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
reply other threads:[~2005-01-10 22:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050110145203.4e4c3a89.rddunlap@osdl.org \
--to=rddunlap-3nddppzayc0@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox