]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_oss: fix "sample rate" error message
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 24 Jul 2012 17:08:40 +0000 (17:08 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 24 Jul 2012 17:08:40 +0000 (17:08 +0000)
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

channels/chan_oss.c

index 17894ab6fb2a886b5291b4a8d4461868763f7ef0..d78ef5a105d81581b4c7700d5712bb38852b1006 100644 (file)
@@ -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) {