diff options
author | myers <none@none> | 2006-04-03 17:49:29 -0700 |
---|---|---|
committer | myers <none@none> | 2006-04-03 17:49:29 -0700 |
commit | 3d50435f68f303099494fc361217f9cea5592dfa (patch) | |
tree | 7926101decca42786476fd6fce8fd19ee769d75d /usr | |
parent | 586d07d095794b3debc231dad6a567b554248e19 (diff) | |
download | illumos-gate-3d50435f68f303099494fc361217f9cea5592dfa.tar.gz |
6406512 acpica: need to muzzle BIOS debug output on non-DEBUG builds
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/uts/i86pc/io/acpica/acpica.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/usr/src/uts/i86pc/io/acpica/acpica.c b/usr/src/uts/i86pc/io/acpica/acpica.c index 0540400a3f..b9b641f798 100644 --- a/usr/src/uts/i86pc/io/acpica/acpica.c +++ b/usr/src/uts/i86pc/io/acpica/acpica.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* @@ -89,6 +88,17 @@ UINT32 acpi_init_level; */ int acpica_enable_interpreter_slack = 1; +/* + * For non-DEBUG builds, set the ACPI CA debug level to 0 + * to quiet chatty BIOS output into /var/adm/messages + * Field-patchable for diagnostic use. + */ +#ifdef DEBUG +int acpica_muzzle_debug_output = 0; +#else +int acpica_muzzle_debug_output = 1; +#endif + int _init(void) @@ -327,6 +337,13 @@ acpica_process_user_options() */ if ((acpi_user_options & ACPI_OUSER_LEGACY) != 0) acpi_init_level |= (ACPI_NO_ACPI_ENABLE | ACPI_NO_HANDLER_INIT); + + /* + * modify default ACPI CA debug output level for non-DEBUG builds + * (to avoid BIOS debug chatter in /var/adm/messages) + */ + if (acpica_muzzle_debug_output) + AcpiDbgLevel = 0; } /* |