diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-26 15:49:18 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-26 15:49:18 +0000 |
commit | 4f3c4dc7f238b64a21172be86266311c9c645c77 (patch) | |
tree | de4bd130dafa592858306d2ac6bcc5f85fd51cc8 /apps/app_adsiprog.c | |
parent | 07772bc9e3ef6636a3e99e07d2aea3a06988f0c9 (diff) |
Do a massive conversion for using the ast_verb() macro
(closes issue #10277, patches by mvanbaak)
Basically, this changes ...
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3, "Something\n");
to ...
ast_verb(3, "Something\n");
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77299 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_adsiprog.c')
-rw-r--r-- | apps/app_adsiprog.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c index eee3b3302..b19ae4714 100644 --- a/apps/app_adsiprog.c +++ b/apps/app_adsiprog.c @@ -1448,8 +1448,7 @@ static int adsi_prog(struct ast_channel *chan, char *script) /* Now begin the download attempt */ if (ast_adsi_begin_download(chan, scr->desc, scr->fdn, scr->sec, scr->ver)) { /* User rejected us for some reason */ - if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "User rejected download attempt\n"); + ast_verb(3, "User rejected download attempt\n"); ast_log(LOG_NOTICE, "User rejected download on channel %s\n", chan->name); ast_free(scr); return -1; @@ -1535,8 +1534,7 @@ static int adsi_prog(struct ast_channel *chan, char *script) return -1; if (ast_adsi_end_download(chan)) { /* Download failed for some reason */ - if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "Download attempt failed\n"); + ast_verb(3, "Download attempt failed\n"); ast_log(LOG_NOTICE, "Download failed on %s\n", chan->name); ast_free(scr); return -1; @@ -1554,11 +1552,9 @@ static int adsi_exec(struct ast_channel *chan, void *data) data = "asterisk.adsi"; if (!ast_adsi_available(chan)) { - if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "ADSI Unavailable on CPE. Not bothering to try.\n"); + ast_verb(3, "ADSI Unavailable on CPE. Not bothering to try.\n"); } else { - if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "ADSI Available on CPE. Attempting Upload.\n"); + ast_verb(3, "ADSI Available on CPE. Attempting Upload.\n"); res = adsi_prog(chan, data); } |