diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-01-09 15:31:56 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-01-09 15:31:56 +0000 |
commit | 1f390863eb282bf0d7813c87fc769e2c1cee477d (patch) | |
tree | ee0d1f7b4ca0eaf6ca86a8cc15a818f095fa1bcd /channels/chan_zap.c | |
parent | b4fbb1916d90fd9250bc2fd5a9674b4b9715a00f (diff) |
Merged revisions 97410 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r97410 | kpfleming | 2008-01-09 09:26:23 -0600 (Wed, 09 Jan 2008) | 2 lines
add error number output to ioctl failure messages to help with debugging
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 1ede60885..a74b837b1 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -1647,7 +1647,7 @@ 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 audio mode on channel %d\n", p->channel); + ast_log(LOG_WARNING, "Unable to enable audio mode on channel %d (%s)\n", p->channel, strerror(res)); } #if defined(HAVE_ZAPTEL_ECHOCANPARAMS) res = ioctl(p->subs[SUB_REAL].zfd, ZT_ECHOCANCEL_PARAMS, &p->echocancel); @@ -1656,7 +1656,7 @@ static void zt_enable_ec(struct zt_pvt *p) res = ioctl(p->subs[SUB_REAL].zfd, ZT_ECHOCANCEL, &x); #endif if (res) { - ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d\n", p->channel); + ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d (%s)\n", p->channel, strerror(res)); } else { p->echocanon = 1; ast_debug(1, "Enabled echo cancellation on channel %d\n", p->channel); |