* Report errors in fan.c
@ 2004-10-04 16:10 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2004-10-04 16:10 UTC (permalink / raw)
To: Andrew Morton, ACPI mailing list, Len Brown,
Rusty trivial patch monkey Russell
Hi!
Currently, fan.c ignores errors from acpi_bus_get_power. On compaq evo
notebook that leads to very confusing empty output. Please apply,
Pavel
--- tmp/linux/drivers/acpi/fan.c 2004-06-22 12:36:01.000000000 +0200
+++ linux/drivers/acpi/fan.c 2004-10-02 18:38:53.000000000 +0200
@@ -94,10 +94,10 @@
goto end;
if (acpi_bus_get_power(fan->handle, &state))
- goto end;
-
- p += sprintf(p, "status: %s\n",
- !state?"on":"off");
+ p += sprintf(p, "status: ERROR\n");
+ else
+ p += sprintf(p, "status: %s\n",
+ !state?"on":"off");
end:
len = (p - page);
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-04 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-04 16:10 Report errors in fan.c Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox