Be less verbose if we have been compiled without DEBUG
authortholo <tholo@openbsd.org>
Mon, 16 Sep 1996 07:56:19 +0000 (07:56 +0000)
committertholo <tholo@openbsd.org>
Mon, 16 Sep 1996 07:56:19 +0000 (07:56 +0000)
sys/kern/kern_lkm.c

index 4137b6f..a9e06c6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: kern_lkm.c,v 1.9 1996/09/09 14:29:26 mickey Exp $     */
+/*     $OpenBSD: kern_lkm.c,v 1.10 1996/09/16 07:56:19 tholo Exp $     */
 /*     $NetBSD: kern_lkm.c,v 1.31 1996/03/31 21:40:27 christos Exp $   */
 
 /*
@@ -983,7 +983,9 @@ lkmdispatch(lkmtp, cmd)
 {
        int error = 0;          /* default = success */
 
+#ifdef DEBUG
        printf("lkmdispatch: %x %d\n", lkmtp, cmd);
+#endif /* DEBUG */
 
        switch(lkmtp->private.lkm_any->lkm_type) {
        case LM_SYSCALL: