Source-Changes-HG archive

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

[src/trunk]: src/sys/kern remove extra chatty messages



details:   https://anonhg.NetBSD.org/src/rev/6400dd15e269
branches:  trunk
changeset: 785228:6400dd15e269
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 05 03:04:00 2013 +0000

description:
remove extra chatty messages

diffstat:

 sys/kern/kern_module.c |  16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diffs (46 lines):

diff -r 297b2b49f086 -r 6400dd15e269 sys/kern/kern_module.c
--- a/sys/kern/kern_module.c    Tue Mar 05 02:46:33 2013 +0000
+++ b/sys/kern/kern_module.c    Tue Mar 05 03:04:00 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_module.c,v 1.88 2013/03/03 16:55:26 christos Exp $        */
+/*     $NetBSD: kern_module.c,v 1.89 2013/03/05 03:04:00 christos 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.88 2013/03/03 16:55:26 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.89 2013/03/05 03:04:00 christos Exp $");
 
 #define _MODULE_INTERNAL
 
@@ -460,12 +460,8 @@
        do {
                TAILQ_FOREACH(mod, &module_builtins, mod_chain) {
                        mi = mod->mod_info;
-                       if (!MODULE_CLASS_MATCH(mi, class)) {
-#ifdef DIAGNOSTIC
-                               module_incompat(mi, class);
-#endif
+                       if (!MODULE_CLASS_MATCH(mi, class))
                                continue;
-                       }
                        /*
                         * If initializing a builtin module fails, don't try
                         * to load it again.  But keep it around and queue it
@@ -491,12 +487,8 @@
        do {
                TAILQ_FOREACH(mod, &module_bootlist, mod_chain) {
                        mi = mod->mod_info;
-                       if (!MODULE_CLASS_MATCH(mi, class)) {
-#ifdef DIAGNOSTIC
-                               module_incompat(mi, class);
-#endif
+                       if (!MODULE_CLASS_MATCH(mi, class))
                                continue;
-                       }
                        module_do_load(mi->mi_name, false, 0, NULL, NULL,
                            class, false);
                        break;



Home | Main Index | Thread Index | Old Index