diff options
author | 2003-08-11 06:20:57 +0000 | |
---|---|---|
committer | 2003-08-11 06:20:57 +0000 | |
commit | ee0e99b37d17ca7b27b7ee999597e0e17a0a689e (patch) | |
tree | 04ed4204b31b67f32122bfe103b0d280580f6f3d | |
parent | wax mongoose (diff) | |
download | wireguard-openbsd-ee0e99b37d17ca7b27b7ee999597e0e17a0a689e.tar.xz wireguard-openbsd-ee0e99b37d17ca7b27b7ee999597e0e17a0a689e.zip |
make sure Debugger() is called only inside _both_ DDB and OSIOP_DEBUG
-rw-r--r-- | sys/dev/ic/osiop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/osiop.c b/sys/dev/ic/osiop.c index aa28c32b7ac..651913f7e1e 100644 --- a/sys/dev/ic/osiop.c +++ b/sys/dev/ic/osiop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osiop.c,v 1.15 2003/08/03 19:32:34 mickey Exp $ */ +/* $OpenBSD: osiop.c,v 1.16 2003/08/11 06:20:57 mickey Exp $ */ /* $NetBSD: osiop.c,v 1.9 2002/04/05 18:27:54 bouyer Exp $ */ /* @@ -1480,7 +1480,7 @@ osiop_checkintr(sc, istat, dstat, sstat0, status) printf("couldn't find saved data pointer: " "curaddr %lx curlen %lx i %d\n", acb->curaddr, acb->curlen, i); -#ifdef DDB +#if defined(OSIOP_DEBUG) && defined(DDB) Debugger(); #endif } @@ -1699,10 +1699,10 @@ osiop_checkintr(sc, istat, dstat, sstat0, status) #ifdef OSIOP_DEBUG if (osiop_debug & DEBUG_DMA) panic("osiop_chkintr: **** temp ****"); -#endif #ifdef DDB Debugger(); #endif +#endif osiop_reset(sc); /* hard reset */ *status = SCSI_OSIOP_NOSTATUS; acb->status = ACB_S_DONE; |