diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-04-09 00:47:55 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-04-09 00:47:55 +0000 |
commit | 58853475c35882d9c2fabae3b3e6feacc8db12f9 (patch) | |
tree | 1d4cbb221f82749956e1062033cd1c6318d28feb /sys/dev/ic/osiop.c | |
parent | 7c7101afea982c9d7e0316c24abdfc7ee28d862a (diff) |
Reduce default OSIOP_DEBUG output to a useful volume.
From mickey@
Diffstat (limited to 'sys/dev/ic/osiop.c')
-rw-r--r-- | sys/dev/ic/osiop.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/ic/osiop.c b/sys/dev/ic/osiop.c index 833a9d5ab7d..5847ecb62af 100644 --- a/sys/dev/ic/osiop.c +++ b/sys/dev/ic/osiop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osiop.c,v 1.5 2003/04/08 18:03:46 krw Exp $ */ +/* $OpenBSD: osiop.c,v 1.6 2003/04/09 00:47:54 krw Exp $ */ /* $NetBSD: osiop.c,v 1.9 2002/04/05 18:27:54 bouyer Exp $ */ /* @@ -552,11 +552,12 @@ osiop_sched(sc) if ((sc->sc_nexus != NULL) || TAILQ_EMPTY(&sc->ready_list)) { #ifdef OSIOP_DEBUG - printf("%s: osiop_sched- nexus %p/%d ready %p/%d\n", - sc->sc_dev.dv_xname, sc->sc_nexus, - sc->sc_nexus->xs->sc_link->target, - sc->ready_list.tqh_first, - sc->ready_list.tqh_first->xs->sc_link->target); + if (osiop_debug) + printf("%s: osiop_sched- nexus %p/%d ready %p/%d\n", + sc->sc_dev.dv_xname, sc->sc_nexus, + sc->sc_nexus->xs->sc_link->target, + sc->ready_list.tqh_first, + sc->ready_list.tqh_first->xs->sc_link->target); #endif return; } @@ -573,8 +574,9 @@ osiop_sched(sc) if (acb == NULL) { #ifdef OSIOP_DEBUG - printf("%s: osiop_sched didn't find ready command\n", - sc->sc_dev.dv_xname); + if (osiop_debug) + printf("%s: osiop_sched didn't find ready command\n", + sc->sc_dev.dv_xname); #endif return; } |