summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2017-07-20 10:23:46 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2017-07-20 10:23:46 +0000
commit744dcede15f77172fbc18296cecc747b7b8a324b (patch)
treea9407e0d89ce2cfd826f43ab183af673f52988e0 /usr.bin
parent4b7849eb6fa12b6a257a681b78ed16ed8ad7df1a (diff)
Fix debug printf used to report kernel bugs: print par.bps instead
of par.bits. Found by coverity.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sndiod/siofile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sndiod/siofile.c b/usr.bin/sndiod/siofile.c
index e07b7880122..a181439fbdf 100644
--- a/usr.bin/sndiod/siofile.c
+++ b/usr.bin/sndiod/siofile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siofile.c,v 1.13 2016/10/27 04:37:47 ratchov Exp $ */
+/* $OpenBSD: siofile.c,v 1.14 2017/07/20 10:23:45 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -153,7 +153,7 @@ dev_sio_open(struct dev *d)
if (par.bps > SIO_BPS(BITS_MAX)) {
log_puts(d->path);
log_puts(": ");
- log_putu(par.bits);
+ log_putu(par.bps);
log_puts(": unsupported sample size\n");
goto bad_close;
}