Source-Changes-HG archive

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

[src/trunk]: src/sys/kern LMREADY: kill the DEBUG message "LKM: try ready"



details:   https://anonhg.NetBSD.org/src/rev/ef36b9ce30a9
branches:  trunk
changeset: 476024:ef36b9ce30a9
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Sep 03 17:07:52 1999 +0000

description:
LMREADY: kill the DEBUG message "LKM: try ready"
LMLOADSYMS: print the DEBUG message only when (lkm_debug & LKMDB_LOAD)

diffstat:

 sys/kern/kern_lkm.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r fffa496fd51e -r ef36b9ce30a9 sys/kern/kern_lkm.c
--- a/sys/kern/kern_lkm.c       Fri Sep 03 14:36:43 1999 +0000
+++ b/sys/kern/kern_lkm.c       Fri Sep 03 17:07:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lkm.c,v 1.48 1999/05/25 00:16:08 tron Exp $       */
+/*     $NetBSD: kern_lkm.c,v 1.49 1999/09/03 17:07:52 jdolecek Exp $   */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -345,7 +345,8 @@
                if ((curp->sym_offset + i) < curp->sym_size) {
                        lkm_state = LKMS_LOADING;
 #ifdef DEBUG
-                       printf( "LKM: LMLOADSYMS (loading @ %ld of %ld, i = %d)\n",
+                       if (lkmdebug & LKMDB_LOAD)
+               printf( "LKM: LMLOADSYMS (loading @ %ld of %ld, i = %d)\n",
                        curp->sym_offset, curp->sym_size, i);
 #endif /* DEBUG*/
                }
@@ -367,9 +368,6 @@
                break;
 
        case LMREADY:           /* module loaded: call entry */
-#ifdef DEBUG
-           printf("LKM: try READY");
-#endif /* DEBUG */
                if (securelevel > 0)
                        return EPERM;
 



Home | Main Index | Thread Index | Old Index