summaryrefslogtreecommitdiff
path: root/sys/dev/ic/osiop.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-08-11 06:20:58 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-08-11 06:20:58 +0000
commit678b21869f24e6ddc3a341fad1a87c353c5464ca (patch)
tree1a93594d5210d20b1785fed1fd16e993871d5f32 /sys/dev/ic/osiop.c
parentf0057e94ea4ae151c54ff6db0bd9b8047a26c7ec (diff)
make sure Debugger() is called only inside _both_ DDB and OSIOP_DEBUG
Diffstat (limited to 'sys/dev/ic/osiop.c')
-rw-r--r--sys/dev/ic/osiop.c6
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;