diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2009-08-29 13:58:52 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2009-08-29 13:58:52 +0000 |
commit | 2a674c0321ab1d6c4d86181028fa51dc3dda5e31 (patch) | |
tree | f7aa101e3d4aa304f8a8285b8b81bdbb9483813e /sys/dev/eisa | |
parent | d95dbebd76898e9673de6acc5cd9e6b4ed875cb5 (diff) |
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.c | 18 | ||||
-rw-r--r-- | sys/dev/eisa/uha_eisa.c | 12 |
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) |