summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2003-06-04 02:41:57 +0000
committerjason <jason@openbsd.org>2003-06-04 02:41:57 +0000
commit7e84b983fe302ded1f9e6ca9b74f20a2c243f45b (patch)
tree82152d6da43b642378f925c0ccbe7f3a7b56e0aa
parentfix printing when AUDIO_SETINFO fails (diff)
downloadwireguard-openbsd-7e84b983fe302ded1f9e6ca9b74f20a2c243f45b.tar.xz
wireguard-openbsd-7e84b983fe302ded1f9e6ca9b74f20a2c243f45b.zip
fix a few more prints... stupid monoaural devices...
-rw-r--r--regress/sys/dev/audio/autest.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/regress/sys/dev/audio/autest.c b/regress/sys/dev/audio/autest.c
index ce472ad9bf5..5b1a97a5cf5 100644
--- a/regress/sys/dev/audio/autest.c
+++ b/regress/sys/dev/audio/autest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autest.c,v 1.8 2003/06/04 01:31:04 jason Exp $ */
+/* $OpenBSD: autest.c,v 1.9 2003/06/04 02:41:57 jason Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -249,7 +249,7 @@ enc_ulinear_8(int fd, audio_encoding_t *enc, int chans)
}
if (ioctl(fd, AUDIO_GETINFO, &inf) == -1) {
- warn("getinfo");
+ printf("[getinfo: %s]", strerror(errno));
goto out;
}
@@ -301,7 +301,7 @@ enc_slinear_8(int fd, audio_encoding_t *enc, int chans)
}
if (ioctl(fd, AUDIO_GETINFO, &inf) == -1) {
- warn("getinfo");
+ printf("[getinfo: %s]", strerror(errno));
goto out;
}
@@ -353,7 +353,7 @@ enc_slinear_16(int fd, audio_encoding_t *enc, int chans, int order)
}
if (ioctl(fd, AUDIO_GETINFO, &inf) == -1) {
- warn("getinfo");
+ printf("[getinfo: %s]", strerror(errno));
goto out;
}
@@ -414,7 +414,7 @@ enc_ulinear_16(int fd, audio_encoding_t *enc, int chans, int order)
}
if (ioctl(fd, AUDIO_GETINFO, &inf) == -1) {
- warn("getinfo");
+ printf("[getinfo: %s]", strerror(errno));
goto out;
}
@@ -477,7 +477,7 @@ enc_adpcm_8(int fd, audio_encoding_t *enc, int chans)
}
if (ioctl(fd, AUDIO_GETINFO, &inf) == -1) {
- warn("getinfo");
+ printf("[getinfo: %s]", strerror(errno));
goto out;
}
@@ -550,7 +550,7 @@ enc_ulaw_8(int fd, audio_encoding_t *enc, int chans)
}
if (ioctl(fd, AUDIO_GETINFO, &inf) == -1) {
- warn("getinfo");
+ printf("[getinfo: %s]", strerror(errno));
goto out;
}
@@ -607,12 +607,12 @@ enc_alaw_8(int fd, audio_encoding_t *enc, int chans)
inf.play.channels = chans;
if (ioctl(fd, AUDIO_SETINFO, &inf) == -1) {
- warn("setinfo");
+ printf("[%s]", strerror(errno));
goto out;
}
if (ioctl(fd, AUDIO_GETINFO, &inf) == -1) {
- warn("getinfo");
+ printf("[getinfo: %s]", strerror(errno));
goto out;
}