summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2020-04-15 14:21:35 +0000
committerratchov <ratchov@openbsd.org>2020-04-15 14:21:35 +0000
commit949f31f085a0e3e5ad6da8acc4f8a7e1930acbed (patch)
tree9f387b79b36416c39ba74929fc480c3bd9a64496
parentDo not delete an existing RTF_CACHED entry with the same destination (diff)
downloadwireguard-openbsd-949f31f085a0e3e5ad6da8acc4f8a7e1930acbed.tar.xz
wireguard-openbsd-949f31f085a0e3e5ad6da8acc4f8a7e1930acbed.zip
Properly log CTL_NONE controls
-rw-r--r--usr.bin/sndiod/dev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c
index 1aae5c3220f..9e8c661ee22 100644
--- a/usr.bin/sndiod/dev.c
+++ b/usr.bin/sndiod/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.66 2020/03/31 06:29:05 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.67 2020/04/15 14:21:35 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -2239,6 +2239,9 @@ ctl_log(struct ctl *c)
log_puts(c->func);
log_puts("=");
switch (c->type) {
+ case CTL_NONE:
+ log_puts("none");
+ break;
case CTL_NUM:
case CTL_SW:
log_putu(c->curval);