summaryrefslogtreecommitdiff
path: root/sys/dev/isa/wds.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2009-08-26 22:29:10 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2009-08-26 22:29:10 +0000
commit4629bc10d5c637106a39f1b54e6e1b45408ed588 (patch)
treed85511c612036de2bc957ee8cf3ebd509920f11c /sys/dev/isa/wds.c
parentb4139e048ac717b5bee601e44b70664326dc558f (diff)
directly calling Debugger() is bad. turn these printf();Debugger(); series
into panic()'s. ok deraadt@ jsing@
Diffstat (limited to 'sys/dev/isa/wds.c')
-rw-r--r--sys/dev/isa/wds.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/isa/wds.c b/sys/dev/isa/wds.c
index ca7468f8d25..ea369619fc2 100644
--- a/sys/dev/isa/wds.c
+++ b/sys/dev/isa/wds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wds.c,v 1.28 2009/02/16 21:19:07 miod Exp $ */
+/* $OpenBSD: wds.c,v 1.29 2009/08/26 22:29:09 jasper Exp $ */
/* $NetBSD: wds.c,v 1.13 1996/11/03 16:20:31 mycroft Exp $ */
#undef WDSDIAG
@@ -79,10 +79,6 @@
#include <dev/isa/isadmavar.h>
#include <dev/isa/wdsreg.h>
-#ifndef DDB
-#define Debugger() panic("should call debugger here (wds.c)")
-#endif /* ! DDB */
-
#define WDS_MBX_SIZE 16
#define WDS_SCB_MAX 32
@@ -1403,10 +1399,8 @@ wds_timeout(arg)
* If The scb's mbx is not free, then the board has gone south?
*/
wds_collect_mbo(sc);
- if (scb->flags & SCB_SENDING) {
- printf("%s: not taking commands!\n", sc->sc_dev.dv_xname);
- Debugger();
- }
+ if (scb->flags & SCB_SENDING)
+ panic("%s: not taking commands!", sc->sc_dev.dv_xname);
#endif
/*