From 6f2ffa263926ca36998c9a835990b256584d534d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 2 Nov 1996 01:09:38 +0000 Subject: Only print 'not finished' if AUDIO_DEBUG defined. Also fix up some printf types. From NetBSD. --- sys/dev/isa/sbdsp.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys') 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++; -- cgit v1.2.3