diff options
author | 2016-05-25 10:24:24 +0000 | |
---|---|---|
committer | 2016-05-25 10:24:24 +0000 | |
commit | b01a7407d5cd6927ce003f4eff4e6369a9540ead (patch) | |
tree | 279018fd0f0827be7870bc985983c05db9b096a6 /usr.bin/sndiod/siofile.c | |
parent | el_map.alt can never be NULL, delete dead code (diff) | |
download | wireguard-openbsd-b01a7407d5cd6927ce003f4eff4e6369a9540ead.tar.xz wireguard-openbsd-b01a7407d5cd6927ce003f4eff4e6369a9540ead.zip |
Don't warn when read or write block at cycle boundary, this may
happen when remote devices are used and is not an error.
Diffstat (limited to '')
-rw-r--r-- | usr.bin/sndiod/siofile.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.bin/sndiod/siofile.c b/usr.bin/sndiod/siofile.c index 435d3f00d8b..9bc78ac88a5 100644 --- a/usr.bin/sndiod/siofile.c +++ b/usr.bin/sndiod/siofile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siofile.c,v 1.11 2016/01/08 16:17:31 ratchov Exp $ */ +/* $OpenBSD: siofile.c,v 1.12 2016/05/25 10:24:24 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -354,10 +354,6 @@ dev_sio_run(void *arg) n = sio_read(d->sio.hdl, data, d->sio.todo); d->sio.todo -= n; #ifdef DEBUG - if (n == 0 && data == base && !sio_eof(d->sio.hdl)) { - dev_log(d); - log_puts(": read blocked at cycle start\n"); - } if (log_level >= 4) { dev_log(d); log_puts(": read "); @@ -437,10 +433,6 @@ dev_sio_run(void *arg) n = sio_write(d->sio.hdl, data, d->sio.todo); d->sio.todo -= n; #ifdef DEBUG - if (n == 0 && data == base && !sio_eof(d->sio.hdl)) { - dev_log(d); - log_puts(": write blocked at cycle start\n"); - } if (log_level >= 4) { dev_log(d); log_puts(": wrote "); |