diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-27 08:10:43 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-27 08:10:43 +0000 |
commit | 330d05c4f8baccb81614e3c5e918738425e668df (patch) | |
tree | 0b697c72469fbe504a4ebe576f5ce824e8346670 /channels/chan_zap.c | |
parent | 0f829e756d59b99eeb13a46d2f6dd84f2aec949c (diff) |
Issue #9608 - fix some annoying DEBUG messages not controlled by option_debug (DEA). Thanks!
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62095 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 3a8301c5e..bd7b14adc 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -1399,7 +1399,8 @@ static int update_conf(struct zt_pvt *p) Kill it. */ p->confno = -1; } - ast_log(LOG_DEBUG, "Updated conferencing on %d, with %d conference users\n", p->channel, needconf); + if (option_debug) + ast_log(LOG_DEBUG, "Updated conferencing on %d, with %d conference users\n", p->channel, needconf); return 0; } @@ -1544,7 +1545,8 @@ static int set_actual_txgain(int fd, int chan, float gain, int law) g.chan = chan; res = ioctl(fd, ZT_GETGAINS, &g); if (res) { - ast_log(LOG_DEBUG, "Failed to read gains: %s\n", strerror(errno)); + if (option_debug) + ast_log(LOG_DEBUG, "Failed to read gains: %s\n", strerror(errno)); return res; } @@ -2440,7 +2442,8 @@ static int zt_hangup(struct ast_channel *ast) if (p->exten) p->exten[0] = '\0'; - ast_log(LOG_DEBUG, "Hangup: channel: %d index = %d, normal = %d, callwait = %d, thirdcall = %d\n", + if (option_debug) + ast_log(LOG_DEBUG, "Hangup: channel: %d index = %d, normal = %d, callwait = %d, thirdcall = %d\n", p->channel, index, p->subs[SUB_REAL].zfd, p->subs[SUB_CALLWAIT].zfd, p->subs[SUB_THREEWAY].zfd); p->ignoredtmf = 0; @@ -2867,7 +2870,8 @@ static int zt_setoption(struct ast_channel *chan, int option, void *data, int da cp = (char *) data; p->mate = 0; if (!*cp) { /* turn it off */ - ast_log(LOG_DEBUG, "Set option TDD MODE, value: OFF(0) on %s\n",chan->name); + if (option_debug) + ast_log(LOG_DEBUG, "Set option TDD MODE, value: OFF(0) on %s\n",chan->name); if (p->tdd) tdd_free(p->tdd); p->tdd = 0; |