pass the right variable to get an error string... oops

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@97448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Kevin P. Fleming 18 years ago
parent 7bfd21933f
commit d235974bd6

@ -1429,12 +1429,12 @@ static void zt_enable_ec(struct zt_pvt *p)
x = 1; x = 1;
res = ioctl(p->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &x); res = ioctl(p->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &x);
if (res) if (res)
ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d (%s)\n", p->channel, strerror(res)); ast_log(LOG_WARNING, "Unable to enable audio mode on channel %d (%s)\n", p->channel, strerror(errno));
} }
x = p->echocancel; x = p->echocancel;
res = ioctl(p->subs[SUB_REAL].zfd, ZT_ECHOCANCEL, &x); res = ioctl(p->subs[SUB_REAL].zfd, ZT_ECHOCANCEL, &x);
if (res) if (res)
ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d (%s)\n", p->channel, strerror(res)); ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d (%s)\n", p->channel, strerror(errno));
else { else {
p->echocanon = 1; p->echocanon = 1;
if (option_debug) if (option_debug)

Loading…
Cancel
Save