diff options
author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-10-31 20:23:41 +0000 |
---|---|---|
committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-10-31 20:23:41 +0000 |
commit | 498d464fe9bf84b290c183b97e0e646a914ee789 (patch) | |
tree | 3f62ea8db214e489e469efb34939cd542b5cc66f /sys/dev/acpica/acpi.c | |
parent | 97af632bcbff3baf07cbec8a3fded37a9039432f (diff) | |
download | src-498d464fe9bf84b290c183b97e0e646a914ee789.tar.gz src-498d464fe9bf84b290c183b97e0e646a914ee789.zip |
Interpret new loader tunable "hw.acpi.verbose" to turn
verbose mode on at boot time.
Notes
Notes:
svn path=/head/; revision=106261
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index d3ebc19501a2..c8f7e623db05 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. |