From: Tzafrir Cohen Date: Tue, 24 Jul 2012 17:08:40 +0000 (+0000) Subject: chan_oss: fix "sample rate" error message X-Git-Tag: 10.8.0-rc1~3^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c54350d8ea19a78c8c349a7e29ac1fb1e20c841c;p=thirdparty%2Fasterisk.git chan_oss: fix "sample rate" error message Merged revisions 370428 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@370432 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 17894ab6fb..d78ef5a105 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -531,7 +531,7 @@ static int setformat(struct chan_oss_pvt *o, int mode) res = ioctl(fd, SNDCTL_DSP_SPEED, &fmt); if (res < 0) { - ast_log(LOG_WARNING, "Failed to set audio device to mono\n"); + ast_log(LOG_WARNING, "Failed to set sample rate to %d\n", desired); return -1; } if (fmt != desired) {