summaryrefslogtreecommitdiff
path: root/lib/libsndio/sio_aucat.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2013-12-20 08:51:29 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2013-12-20 08:51:29 +0000
commit1f707e157ee1d9966a538c2ed880c655f5024da4 (patch)
treedf23ac67c2fc5f6ded3ec68d4907f03998390f1e /lib/libsndio/sio_aucat.c
parenta840cf3be284597a8481e6409749098db93c6e56 (diff)
Be less verbose when SNDIO_DEBUG=1 is set.
Diffstat (limited to 'lib/libsndio/sio_aucat.c')
-rw-r--r--lib/libsndio/sio_aucat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libsndio/sio_aucat.c b/lib/libsndio/sio_aucat.c
index 05cfe8fdd68..e1cdab28f2c 100644
--- a/lib/libsndio/sio_aucat.c
+++ b/lib/libsndio/sio_aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio_aucat.c,v 1.15 2013/11/13 22:38:22 ratchov Exp $ */
+/* $OpenBSD: sio_aucat.c,v 1.16 2013/12/20 08:51:28 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -99,13 +99,13 @@ sio_aucat_runmsg(struct sio_aucat_hdl *hdl)
case AMSG_FLOWCTL:
delta = ntohl(hdl->aucat.rmsg.u.ts.delta);
hdl->aucat.maxwrite += delta * (int)hdl->wbpf;
- DPRINTF("aucat: flowctl = %d, maxwrite = %d\n",
+ DPRINTFN(3, "aucat: flowctl = %d, maxwrite = %d\n",
delta, hdl->aucat.maxwrite);
break;
case AMSG_MOVE:
delta = ntohl(hdl->aucat.rmsg.u.ts.delta);
hdl->delta += delta;
- DPRINTFN(2, "aucat: move = %d, delta = %d, maxwrite = %d\n",
+ DPRINTFN(3, "aucat: move = %d, delta = %d, maxwrite = %d\n",
delta, hdl->delta, hdl->aucat.maxwrite);
if (hdl->delta >= 0) {
_sio_onmove_cb(&hdl->sio, hdl->delta);
@@ -192,7 +192,7 @@ sio_aucat_start(struct sio_hdl *sh)
hdl->aucat.maxwrite = 0;
hdl->round = par.round;
hdl->delta = 0;
- DPRINTF("aucat: start, maxwrite = %d\n", hdl->aucat.maxwrite);
+ DPRINTFN(2, "aucat: start, maxwrite = %d\n", hdl->aucat.maxwrite);
AMSG_INIT(&hdl->aucat.wmsg);
hdl->aucat.wmsg.cmd = htonl(AMSG_START);
@@ -471,7 +471,7 @@ sio_aucat_revents(struct sio_hdl *sh, struct pollfd *pfd)
}
if (hdl->sio.eof)
return POLLHUP;
- DPRINTFN(2, "sio_aucat_revents: %x\n", revents & hdl->events);
+ DPRINTFN(3, "sio_aucat_revents: %x\n", revents & hdl->events);
return revents & (hdl->events | POLLHUP);
}