summaryrefslogtreecommitdiff
path: root/sys/dev/isa/gus.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/gus.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/gus.c')
-rw-r--r--sys/dev/isa/gus.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/isa/gus.c b/sys/dev/isa/gus.c
index 4fb4f1d61f3..f71de03e445 100644
--- a/sys/dev/isa/gus.c
+++ b/sys/dev/isa/gus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gus.c,v 1.32 2008/10/15 19:12:18 blambert Exp $ */
+/* $OpenBSD: gus.c,v 1.33 2009/08/26 22:29:09 jasper Exp $ */
/* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */
/*-
@@ -1001,14 +1001,8 @@ gus_voice_intr(sc)
sc->sc_playbuf = ++sc->sc_playbuf % sc->sc_nbufs;
gus_start_playing(sc, sc->sc_playbuf);
} else if (sc->sc_bufcnt < 0) {
-#ifdef DDB
- printf("%s: negative bufcnt in stopped voice\n",
- sc->sc_dev.dv_xname);
- Debugger();
-#else
panic("%s: negative bufcnt in stopped voice",
- sc->sc_dev.dv_xname);
-#endif
+ sc->sc_dev.dv_xname);
} else {
sc->sc_playbuf = -1; /* none are active */
gus_stops++;