From e8bca197cb6a8614ef9fbbc6eabfc2d15fc7be3d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 7 Dec 2001 17:08:36 +0000 Subject: bitmask_snprintf goes away --- sys/dev/pci/yds.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'sys') diff --git a/sys/dev/pci/yds.c b/sys/dev/pci/yds.c index 5c29a73f8f6..52f7dd33cae 100644 --- a/sys/dev/pci/yds.c +++ b/sys/dev/pci/yds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yds.c,v 1.8 2001/11/05 17:25:58 art Exp $ */ +/* $OpenBSD: yds.c,v 1.9 2001/12/07 17:08:35 deraadt Exp $ */ /* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */ /* @@ -69,6 +69,11 @@ #include #include +#ifdef AUDIO_DEBUG +#include /* for vtophys */ +#include /* for vtophys */ +#endif + /* Debug */ #undef YDS_USE_REC_SLOT #define YDS_USE_P44 @@ -697,13 +702,9 @@ yds_attach(parent, self, aux) sc->sc_id = pa->pa_id; sc->sc_flags = yds_get_dstype(sc->sc_id); #ifdef AUDIO_DEBUG - if (ydsdebug) { - char bits[80]; - - printf("%s: chip has %s\n", sc->sc_dev.dv_xname, - bitmask_snprintf(sc->sc_flags, YDS_CAP_BITS, bits, - sizeof(bits))); - } + if (ydsdebug) + printf("%s: chip has %b\n", sc->sc_dev.dv_xname, + YDS_CAP_BITS, sc->sc_flags); #endif /* Disable legacy mode */ -- cgit v1.2.3