summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2019-04-10 15:14:50 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2019-04-10 15:14:50 +0000
commit0a1e3562d8ece94e7ba0094f413b70f545670f8b (patch)
tree8c5c603a5aed9a490b874fa94c69834b8691a48e
parent51e4de3477e93cfdc30a4feaec76173de3a329b8 (diff)
Hide debug printfs.
ok deraadt
-rw-r--r--sys/dev/usb/uaudio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c
index 42293ca041b..29b73af2ad0 100644
--- a/sys/dev/usb/uaudio.c
+++ b/sys/dev/usb/uaudio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uaudio.c,v 1.139 2019/04/04 09:23:36 ratchov Exp $ */
+/* $OpenBSD: uaudio.c,v 1.140 2019/04/10 15:14:49 ratchov Exp $ */
/*
* Copyright (c) 2018 Alexandre Ratchov <alex@caoua.org>
*
@@ -3225,7 +3225,7 @@ uaudio_pdata_intr(struct usbd_xfer *usb_xfer, void *arg, usbd_status status)
#endif
usbd_get_xfer_status(usb_xfer, NULL, NULL, &size, NULL);
if (size != xfer->size) {
- printf("%s: %u bytes out of %u: incomplete play xfer\n",
+ DPRINTF("%s: %u bytes out of %u: incomplete play xfer\n",
DEVNAME(sc), size, xfer->size);
}
@@ -3290,7 +3290,7 @@ uaudio_psync_xfer(struct uaudio_softc *sc)
uaudio_psync_intr);
err = usbd_transfer(xfer->usb_xfer);
- if (err != USBD_IN_PROGRESS)
+ if (err != 0 && err != USBD_IN_PROGRESS)
printf("%s: sync play xfer, err = %d\n", DEVNAME(sc), err);
if (++s->sync_nextxfer == s->nxfers)
@@ -3544,7 +3544,7 @@ uaudio_rdata_intr(struct usbd_xfer *usb_xfer, void *arg, usbd_status status)
s->data_nextxfer, data_size, xfer->size, s->ring_offs);
}
if (null_count > 0) {
- printf("%s: %u null frames out of %u: incomplete record xfer\n",
+ DPRINTF("%s: %u null frames out of %u: incomplete record xfer\n",
DEVNAME(sc), null_count, xfer->nframes);
}
#endif