summaryrefslogtreecommitdiffstats
path: root/sys/dev/eisa
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2009-08-29 13:58:51 +0000
committerjasper <jasper@openbsd.org>2009-08-29 13:58:51 +0000
commit66f23277ccb90d2519d4b803f2c38985d30bc077 (patch)
tree6a6bce16d3c47bffc92c83714b049e9c1e427067 /sys/dev/eisa
parentsync. -moj (diff)
downloadwireguard-openbsd-66f23277ccb90d2519d4b803f2c38985d30bc077.tar.xz
wireguard-openbsd-66f23277ccb90d2519d4b803f2c38985d30bc077.zip
remove more unneeded Debugger() calls from dev/
agreed by deraadt@ ok jsing@
Diffstat (limited to 'sys/dev/eisa')
-rw-r--r--sys/dev/eisa/aha1742.c18
-rw-r--r--sys/dev/eisa/uha_eisa.c12
2 files changed, 8 insertions, 22 deletions
diff --git a/sys/dev/eisa/aha1742.c b/sys/dev/eisa/aha1742.c
index 940c17c3110..9bff0f9178f 100644
--- a/sys/dev/eisa/aha1742.c
+++ b/sys/dev/eisa/aha1742.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aha1742.c,v 1.32 2009/03/29 21:53:52 sthen Exp $ */
+/* $OpenBSD: aha1742.c,v 1.33 2009/08/29 13:58:51 jasper Exp $ */
/* $NetBSD: aha1742.c,v 1.61 1996/05/12 23:40:01 mycroft Exp $ */
/*
@@ -69,10 +69,6 @@
#include <scsi/scsi_all.h>
#include <scsi/scsiconf.h>
-#ifndef DDB
-#define Debugger() panic("should call debugger here (aha1742.c)")
-#endif /* ! DDB */
-
typedef u_long physaddr;
typedef u_long physlen;
@@ -351,10 +347,8 @@ ahb_send_mbox(sc, opcode, ecb)
break;
delay(10);
}
- if (!wait) {
- printf("%s: board not responding\n", sc->sc_dev.dv_xname);
- Debugger();
- }
+ if (!wait)
+ panic("%s: board not responding\n", sc->sc_dev.dv_xname);
/* don't know this will work */
bus_space_write_4(iot, ioh, MBOXOUT0, KVTOPHYS(ecb));
@@ -411,10 +405,8 @@ ahb_send_immed(sc, target, cmd)
break;
delay(10);
}
- if (!wait) {
- printf("%s: board not responding\n", sc->sc_dev.dv_xname);
- Debugger();
- }
+ if (!wait)
+ panic("%s: board not responding\n", sc->sc_dev.dv_xname);
/* don't know this will work */
bus_space_write_4(iot, ioh, MBOXOUT0, cmd);
diff --git a/sys/dev/eisa/uha_eisa.c b/sys/dev/eisa/uha_eisa.c
index 6724bb6fe87..eea7ba32fd6 100644
--- a/sys/dev/eisa/uha_eisa.c
+++ b/sys/dev/eisa/uha_eisa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uha_eisa.c,v 1.9 2009/03/29 21:53:52 sthen Exp $ */
+/* $OpenBSD: uha_eisa.c,v 1.10 2009/08/29 13:58:51 jasper Exp $ */
/* $NetBSD: uha_eisa.c,v 1.5 1996/10/21 22:31:07 thorpej Exp $ */
/*
@@ -53,10 +53,6 @@
#define UHA_EISA_SLOT_OFFSET 0xc80
#define UHA_EISA_IOSIZE 0x020
-#ifndef DDB
-#define Debugger() panic("should call debugger here (uha_eisa.c)")
-#endif
-
int uha_eisa_match(struct device *, void *, void *);
void uha_eisa_attach(struct device *, struct device *, void *);
@@ -233,11 +229,9 @@ u24_start_mbox(sc, mscp)
break;
delay(100);
}
- if (!spincount) {
- printf("%s: uha_start_mbox, board not responding\n",
+ if (!spincount)
+ panic("%s: uha_start_mbox, board not responding\n",
sc->sc_dev.dv_xname);
- Debugger();
- }
bus_space_write_4(iot, ioh, U24_OGMPTR, KVTOPHYS(mscp));
if (mscp->flags & MSCP_ABORT)