chan_oss: fix "sample rate" error message
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 24 Jul 2012 17:16:40 +0000 (17:16 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 24 Jul 2012 17:16:40 +0000 (17:16 +0000)
Merged revisions 370428 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Merged revisions 370432 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370433 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_oss.c

index 8cd2029..bcf6dd8 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) {