From 400e1f5e97009f227477935642545ef14884a3f7 Mon Sep 17 00:00:00 2001 From: iwasaki Date: Thu, 31 Oct 2002 20:23:41 +0000 Subject: Interpret new loader tunable "hw.acpi.verbose" to turn verbose mode on at boot time. --- sys/dev/acpica/acpi.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev/acpica') diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index d3ebc19..c8f7e62 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -314,7 +314,7 @@ acpi_attach(device_t dev) ACPI_STATUS status; int error; UINT32 flags; - + char *env; #ifdef ACPI_DEBUGGER char *debugpoint; #endif @@ -431,7 +431,11 @@ acpi_attach(device_t dev) sc->acpi_s4bios = 1; if (bootverbose) sc->acpi_verbose = 1; - + if ((env = getenv("hw.acpi.verbose")) && strcmp(env, "0")) { + sc->acpi_verbose = 1; + freeenv(env); + } + /* * Dispatch the default sleep state to devices. * TBD: should be configured from userland policy manager. -- cgit v1.1