* Report fan errors to user
@ 2004-09-09 13:50 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2004-09-09 13:50 UTC (permalink / raw)
To: Len Brown, ACPI mailing list
Hi!
I hit this on compaq evo n620c notebook... fan file would simply be
empty. Please apply,
Pavel
--- clean-mm/drivers/acpi/fan.c 2004-08-24 09:01:53.000000000 +0200
+++ linux-mm/drivers/acpi/fan.c 2004-09-07 21:15:19.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);
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-09 13:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-09 13:50 Report fan errors to user Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox