summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_powerres.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_powerres.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_powerres.c')
-rw-r--r--sys/dev/acpica/acpi_powerres.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi_powerres.c b/sys/dev/acpica/acpi_powerres.c
index 5effdb3..b3d98d3 100644
--- a/sys/dev/acpica/acpi_powerres.c
+++ b/sys/dev/acpica/acpi_powerres.c
@@ -471,7 +471,7 @@ acpi_pwr_reference_resource(ACPI_OBJECT *obj, void *arg)
/* create/look up the resource */
if (ACPI_FAILURE(status = acpi_pwr_register_resource(res))) {
DEBUG_PRINT(TRACE_OBJECTS, ("couldn't register power resource %s - %s\n",
- obj->String.Pointer, acpi_strerror(status)));
+ obj->String.Pointer, AcpiFormatException(status)));
return_VOID;
}
if ((rp = acpi_pwr_find_resource(res)) == NULL) {
@@ -534,7 +534,7 @@ acpi_pwr_switch_power(void)
if (cur != ACPI_PWR_ON) {
if (ACPI_FAILURE(status = AcpiEvaluateObject(rp->ap_resource, "_ON", NULL, NULL))) {
DEBUG_PRINT(TRACE_OBJECTS, ("failed to switch %s on - %s\n",
- acpi_name(rp->ap_resource), acpi_strerror(status)));
+ acpi_name(rp->ap_resource), AcpiFormatException(status)));
} else {
DEBUG_PRINT(TRACE_OBJECTS, ("switched %s on\n", acpi_name(rp->ap_resource)));
}
@@ -568,7 +568,7 @@ acpi_pwr_switch_power(void)
if (cur != ACPI_PWR_OFF) {
if (ACPI_FAILURE(status = AcpiEvaluateObject(rp->ap_resource, "_OFF", NULL, NULL))) {
DEBUG_PRINT(TRACE_OBJECTS, ("failed to switch %s off - %s\n",
- acpi_name(rp->ap_resource), acpi_strerror(status)));
+ acpi_name(rp->ap_resource), AcpiFormatException(status)));
} else {
DEBUG_PRINT(TRACE_OBJECTS, ("switched %s off\n", acpi_name(rp->ap_resource)));
}
OpenPOWER on IntegriCloud