summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-11-02 01:09:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-11-02 01:09:38 +0000
commit6f2ffa263926ca36998c9a835990b256584d534d (patch)
treeb72c25ee18e5dc05d725036b3e677fdaedd92db4 /sys
parente1cebbbb830da1de265b39a3864c579690e29f57 (diff)
Only print 'not finished' if AUDIO_DEBUG defined. Also fix up some
printf types. From NetBSD.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/sbdsp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/isa/sbdsp.c b/sys/dev/isa/sbdsp.c
index 874b5bad78b..dbb70611877 100644
--- a/sys/dev/isa/sbdsp.c
+++ b/sys/dev/isa/sbdsp.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: sbdsp.c,v 1.7 1996/09/16 15:39:44 mickey Exp $ */
-/* $NetBSD: sbdsp.c,v 1.26 1996/05/12 23:53:38 mycroft Exp $ */
+/* $OpenBSD: sbdsp.c,v 1.8 1996/11/02 01:09:37 millert Exp $ */
+/* $NetBSD: sbdsp.c,v 1.30 1996/10/25 07:25:48 fvdl Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@@ -144,9 +144,9 @@ sb_printsc(sc)
printf("irate %d itc %d imode %d orate %d otc %d omode %d encoding %x\n",
sc->sc_irate, sc->sc_itc, sc->sc_imode,
sc->sc_orate, sc->sc_otc, sc->sc_omode, sc->encoding);
- printf("outport %d inport %d spkron %d nintr %d\n",
+ printf("outport %d inport %d spkron %d nintr %lu\n",
sc->out_port, sc->in_port, sc->spkr_state, sc->sc_interrupts);
- printf("precision %d channels %d intr %x arg %x\n",
+ printf("precision %d channels %d intr %p arg %p\n",
sc->sc_precision, sc->sc_channels, sc->sc_intr, sc->sc_arg);
printf("gain: ");
for (i = 0; i < SB_NDEVS; i++)
@@ -1343,7 +1343,9 @@ sbdsp_intr(arg)
Dprintf("sbdsp_intr: intr=0x%x\n", sc->sc_intr);
#endif
if (!isa_dmafinished(sc->sc_drq)) {
+#ifdef AUDIO_DEBUG
printf("sbdsp_intr: not finished\n");
+#endif
return 0;
}
sc->sc_interrupts++;