summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2014-06-02 07:51:25 +0000
committerratchov <ratchov@openbsd.org>2014-06-02 07:51:25 +0000
commitaea2a6e1c934dd9af484e2cab6a38580af982cfc (patch)
tree304ef8b9c2382d68da27110c5cdb134835a2d0f0
parent- document SIGINT, because of its zero return value (diff)
downloadwireguard-openbsd-aea2a6e1c934dd9af484e2cab6a38580af982cfc.tar.xz
wireguard-openbsd-aea2a6e1c934dd9af484e2cab6a38580af982cfc.zip
log attach position only if log_level >= 0,
remove empty dev_mon_snoop() function
-rw-r--r--usr.bin/sndiod/dev.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c
index 7fd30063d90..8ddffaea739 100644
--- a/usr.bin/sndiod/dev.c
+++ b/usr.bin/sndiod/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.16 2014/03/17 17:53:33 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.17 2014/06/02 07:51:25 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -45,7 +45,6 @@ void dev_midi_omsg(void *, unsigned char *, int);
void dev_midi_fill(void *, int);
void dev_midi_exit(void *);
-void dev_mon_snoop(struct dev *);
int play_filt_resamp(struct slot *, void *, void *, int);
int play_filt_dec(struct slot *, void *, void *, int);
void dev_mix_badd(struct dev *, struct slot *);
@@ -553,15 +552,6 @@ slot_skip(struct slot *s)
return max - s->skip;
}
-/*
- * merge play buffer contents into record buffer as if the
- * play stream was recorded
- */
-void
-dev_mon_snoop(struct dev *d)
-{
-}
-
int
play_filt_resamp(struct slot *s, void *res_in, void *out, int todo)
{
@@ -1631,7 +1621,7 @@ slot_attach(struct slot *s)
s->pstate = SLOT_RUN;
#ifdef DEBUG
- if (log_level >= 0) {
+ if (log_level >= 2) {
slot_log(s);
log_puts(": attached at ");
log_puti(startpos);