summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_thermal.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-07-21 10:24:37 +0000
committermsmith <msmith@FreeBSD.org>2001-07-21 10:24:37 +0000
commita67f578d2b31873dd3b9906157d4998436a6b327 (patch)
tree1fc3787f42a591447b248bc0c7af5b8d53fd16a7 /sys/dev/acpica/acpi_thermal.c
parentbd6df0c72b8ada00c19e59bb38c04b39400a26b4 (diff)
downloadFreeBSD-src-a67f578d2b31873dd3b9906157d4998436a6b327.zip
FreeBSD-src-a67f578d2b31873dd3b9906157d4998436a6b327.tar.gz
Convert from acpi_strerror() to AcpiFormatException()
Fix dangling include of the dear departed acpi_ecreg.h
Diffstat (limited to 'sys/dev/acpica/acpi_thermal.c')
-rw-r--r--sys/dev/acpica/acpi_thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_thermal.c b/sys/dev/acpica/acpi_thermal.c
index 0c7150c..eb154b2 100644
--- a/sys/dev/acpica/acpi_thermal.c
+++ b/sys/dev/acpica/acpi_thermal.c
@@ -513,7 +513,7 @@ acpi_tz_switch_cooler_on(ACPI_OBJECT *obj, void *arg)
if (AcpiGetHandle(NULL, obj->String.Pointer, &cooler) == AE_OK) {
if (ACPI_FAILURE(status = acpi_pwr_switch_consumer(cooler, ACPI_STATE_D0))) {
device_printf(sc->tz_dev, "failed to activate %s - %s\n",
- obj->String.Pointer, acpi_strerror(status));
+ obj->String.Pointer, AcpiFormatException(status));
}
} else {
device_printf(sc->tz_dev, "couldn't find %s\n", obj->String.Pointer);
@@ -683,7 +683,7 @@ acpi_tz_powerprofile(void *arg)
if (ACPI_FAILURE(status = AcpiEvaluateObject(sc->tz_handle, "_SCP", &args, NULL))) {
if (status != AE_NOT_FOUND)
device_printf(sc->tz_dev, "can't evaluate %s._SCP - %s\n", acpi_name(sc->tz_handle),
- acpi_strerror(status));
+ AcpiFormatException(status));
sc->tz_flags |= TZ_FLAG_NO_SCP;
} else {
/* we have to re-evaluate the entire zone now */
OpenPOWER on IntegriCloud