diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-14 19:39:12 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-14 19:39:12 +0000 |
commit | f0424318479863edeed2a6a128e6d1ac926966e3 (patch) | |
tree | 4fd144260e58c9a66d331fc81b46473723452479 /apps/app_zapbarge.c | |
parent | c8ca7d2f263f5161ce1b29ec2c9de835131fc950 (diff) |
Add a massive set of changes for converting to use the ast_debug() macro.
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69327 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_zapbarge.c')
-rw-r--r-- | apps/app_zapbarge.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/app_zapbarge.c b/apps/app_zapbarge.c index 5b1f176bc..201ae78de 100644 --- a/apps/app_zapbarge.c +++ b/apps/app_zapbarge.c @@ -171,8 +171,7 @@ zapretry: if (ztc.confmode) { /* Whoa, already in a conference... Retry... */ if (!retryzap) { - if (option_debug) - ast_log(LOG_DEBUG, "Zap channel is in a conference already, retrying with pseudo\n"); + ast_debug(1, "Zap channel is in a conference already, retrying with pseudo\n"); retryzap = 1; goto zapretry; } @@ -188,8 +187,7 @@ zapretry: close(fd); goto outrun; } - if (option_debug) - ast_log(LOG_DEBUG, "Placed channel %s in ZAP channel %d monitor\n", chan->name, confno); + ast_debug(1, "Placed channel %s in ZAP channel %d monitor\n", chan->name, confno); for(;;) { outfd = -1; @@ -201,8 +199,7 @@ zapretry: /* Kill old pseudo */ close(fd); } - if (option_debug) - ast_log(LOG_DEBUG, "Ooh, something swapped out under us, starting over\n"); + ast_debug(1, "Ooh, something swapped out under us, starting over\n"); retryzap = 0; goto zapretry; } |