Source-Changes-HG archive

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

[src/trunk]: src/sys Add MODULAR_DEFAULT_VERBOSE option.



details:   https://anonhg.NetBSD.org/src/rev/573319a38ad4
branches:  trunk
changeset: 365964:573319a38ad4
user:      rin <rin%NetBSD.org@localhost>
date:      Sat May 07 04:30:41 2022 +0000

description:
Add MODULAR_DEFAULT_VERBOSE option.

diffstat:

 sys/conf/files         |   3 ++-
 sys/kern/kern_module.c |  10 +++++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 570d5b64ecd3 -r 573319a38ad4 sys/conf/files
--- a/sys/conf/files    Sat May 07 04:19:22 2022 +0000
+++ b/sys/conf/files    Sat May 07 04:30:41 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files,v 1.1296 2022/03/24 02:24:24 manu Exp $
+#      $NetBSD: files,v 1.1297 2022/05/07 04:30:41 rin Exp $
 #      @(#)files.newconf       7.5 (Berkeley) 5/10/93
 
 version        20171118
@@ -26,6 +26,7 @@
 defflag                                COREDUMP
 defflag        opt_modular.h           MODULAR
 defflag        opt_modular.h           MODULAR_DEFAULT_AUTOLOAD
+defflag        opt_modular.h           MODULAR_DEFAULT_VERBOSE
 defflag                                KEYLOCK
 defparam opt_syslimits.h       CHILD_MAX OPEN_MAX
 defflag                                GPROF
diff -r 570d5b64ecd3 -r 573319a38ad4 sys/kern/kern_module.c
--- a/sys/kern/kern_module.c    Sat May 07 04:19:22 2022 +0000
+++ b/sys/kern/kern_module.c    Sat May 07 04:30:41 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_module.c,v 1.153 2021/09/16 21:29:42 andvar Exp $ */
+/*     $NetBSD: kern_module.c,v 1.154 2022/05/07 04:30:41 rin Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.153 2021/09/16 21:29:42 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.154 2022/05/07 04:30:41 rin Exp $");
 
 #define _MODULE_INTERNAL
 
@@ -84,7 +84,11 @@
 };
 
 static module_t        *module_active;
-bool           module_verbose_on;
+#ifdef MODULAR_DEFAULT_VERBOSE
+bool           module_verbose_on = true;
+#else
+bool           module_verbose_on = false;
+#endif
 #ifdef MODULAR_DEFAULT_AUTOLOAD
 bool           module_autoload_on = true;
 #else



Home | Main Index | Thread Index | Old Index