Skip to contentSkip to conversation

Report fan errors to user

PATCH Pavel Machek 1 participant 1 message Sep 9, 2004 ACPI

lore
Share & tools
lore
#0 lore raw

Hi!

I hit this on compaq evo n620c notebook... fan file would simply be empty. Please apply,
Pavel

drivers/acpi/fan.c +4 -4
@@ -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