diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-12-07 17:08:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-12-07 17:08:36 +0000 |
commit | e8bca197cb6a8614ef9fbbc6eabfc2d15fc7be3d (patch) | |
tree | d30f6482286a6636e4a4a9f87fc009e488eabdb7 /sys/dev | |
parent | d5b07284a22b81806ca4e7f779be012683e7e536 (diff) |
bitmask_snprintf goes away
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/yds.c | 17 |
1 files changed, 9 insertions, 8 deletions
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 <dev/pci/ydsreg.h> #include <dev/pci/ydsvar.h> +#ifdef AUDIO_DEBUG +#include <uvm/uvm_extern.h> /* for vtophys */ +#include <uvm/uvm_pmap.h> /* 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 */ |