Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/acpica/dist/utilities Suppress table loadin...



details:   https://anonhg.NetBSD.org/src/rev/c3ab4bd891dc
branches:  trunk
changeset: 1023319:c3ab4bd891dc
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Sep 03 11:59:28 2021 +0000

description:
Suppress table loading messages if AB_QUIET or AB_SILENT flags are set.

diffstat:

 sys/external/bsd/acpica/dist/include/platform/acnetbsd.h |  7 ++++++-
 sys/external/bsd/acpica/dist/utilities/utxferror.c       |  5 +++++
 2 files changed, 11 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r 14321dd4d18d -r c3ab4bd891dc sys/external/bsd/acpica/dist/include/platform/acnetbsd.h
--- a/sys/external/bsd/acpica/dist/include/platform/acnetbsd.h  Fri Sep 03 10:30:33 2021 +0000
+++ b/sys/external/bsd/acpica/dist/include/platform/acnetbsd.h  Fri Sep 03 11:59:28 2021 +0000
@@ -1,7 +1,7 @@
 /******************************************************************************
  *
  * Name: acnetbsd.h - OS specific defines, etc.
- *       $Revision: 1.22 $
+ *       $Revision: 1.23 $
  *
  *****************************************************************************/
 
@@ -65,6 +65,7 @@
 
 #include <sys/param.h>
 #include <sys/systm.h>
+#include <sys/reboot.h>
 #include <sys/endian.h>
 #include <dev/acpi/acpica/acpi_func.h>
 
@@ -144,4 +145,8 @@
 #define ACPI_USE_NATIVE_DIVIDE
 #define ACPI_USE_NATIVE_MATH64
 
+/* Suppress ACPI_INFO level log messages when this is true */
+#define        ACPI_QUIET_BOOT \
+       ((boothowto & (AB_QUIET|AB_SILENT)) != 0)
+
 #endif /* __ACNETBSD_H__ */
diff -r 14321dd4d18d -r c3ab4bd891dc sys/external/bsd/acpica/dist/utilities/utxferror.c
--- a/sys/external/bsd/acpica/dist/utilities/utxferror.c        Fri Sep 03 10:30:33 2021 +0000
+++ b/sys/external/bsd/acpica/dist/utilities/utxferror.c        Fri Sep 03 11:59:28 2021 +0000
@@ -206,6 +206,11 @@
 {
     va_list                 ArgList;
 
+#if defined(ACPI_QUIET_BOOT)
+    if (ACPI_QUIET_BOOT) {
+        return;
+    }
+#endif
 
     ACPI_MSG_REDIRECT_BEGIN;
     AcpiOsPrintf (ACPI_MSG_INFO);



Home | Main Index | Thread Index | Old Index