summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_ec.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-07-05 07:21:12 +0000
committermsmith <msmith@FreeBSD.org>2001-07-05 07:21:12 +0000
commitfebc0bda20d14051863244e8de0c7ddb402b22f2 (patch)
treee26c46acd6d09622ac348d708a254575c15f7cf3 /sys/dev/acpica/acpi_ec.c
parent84fc63832d3afae45e0ba848cabd1bc5c7998e65 (diff)
downloadFreeBSD-src-febc0bda20d14051863244e8de0c7ddb402b22f2.zip
FreeBSD-src-febc0bda20d14051863244e8de0c7ddb402b22f2.tar.gz
Improve some error messages slightly.
Diffstat (limited to 'sys/dev/acpica/acpi_ec.c')
-rw-r--r--sys/dev/acpica/acpi_ec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index 1c211b4..2f29090 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -345,7 +345,8 @@ acpi_ec_attach(device_t dev)
*/
if ((Status = AcpiInstallGpeHandler(sc->ec_gpebit, ACPI_EVENT_LEVEL_TRIGGERED | ACPI_EVENT_EDGE_TRIGGERED,
EcGpeHandler, sc)) != AE_OK) {
- device_printf(dev, "can't install GPE handler - %s\n", acpi_strerror(Status));
+ device_printf(dev, "can't install GPE handler for %s - %s\n",
+ acpi_name(sc->ec_handle), acpi_strerror(Status));
return_VALUE(ENXIO);
}
@@ -355,7 +356,9 @@ acpi_ec_attach(device_t dev)
DEBUG_PRINT(TRACE_RESOURCES, ("attaching address space handler\n"));
if ((Status = AcpiInstallAddressSpaceHandler(sc->ec_handle, ACPI_ADR_SPACE_EC,
EcSpaceHandler, EcSpaceSetup, sc)) != AE_OK) {
- device_printf(dev, "can't install address space handler - %s\n", acpi_strerror(Status));
+ device_printf(dev, "can't install address space handler for %s - %s\n",
+ acpi_name(sc->ec_handle), acpi_strerror(Status));
+ panic("very suck");
return_VALUE(ENXIO);
}
DEBUG_PRINT(TRACE_RESOURCES, ("attach complete\n"));
OpenPOWER on IntegriCloud