From fcfdba7a66c81e5dea9cd9b9150b17ee9030ad44 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 9 Jan 2008 15:43:19 +0000 Subject: [PATCH] pass the right variable to get an error string... oops git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@97448 614ede4d-c843-0410-af14-a771ab80d22e --- channels/chan_zap.c | 4 ++-- 1 file 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) -- 2.11.4.GIT