aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-09 15:26:23 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-09 15:26:23 +0000
commitdb393be7ce53f9c872c8693e682b4d1d31a0f8dc (patch)
treea064a44264f7692bad38233199f905dcfbb69728 /channels/chan_zap.c
parentedc5071cfaab9216cbde2e69eedcf31bb873875b (diff)
add error number output to ioctl failure messages to help with debugging
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@97410 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 46334780a..66b9b0468 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\n", p->channel);
+ ast_log(LOG_WARNING, "Unable to enable echo cancellation on channel %d (%s)\n", p->channel, strerror(res));
}
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\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;
if (option_debug)