diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-09 15:43:19 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-09 15:43:19 +0000 |
commit | 11c7636e69daf4f8c648bc3013e6c53421ce2540 (patch) | |
tree | 19e375e126ec682e5030798ca812f1572227b18c /channels/chan_zap.c | |
parent | db393be7ce53f9c872c8693e682b4d1d31a0f8dc (diff) |
pass the right variable to get an error string... oops
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@97448 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 66b9b0468..85326799d 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -1429,12 +1429,12 @@ static void zt_enable_ec(struct zt_pvt *p) x = 1; res = ioctl(p->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &x); 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; res = ioctl(p->subs[SUB_REAL].zfd, ZT_ECHOCANCEL, &x); 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 { p->echocanon = 1; if (option_debug) |