From 4f3c4dc7f238b64a21172be86266311c9c645c77 Mon Sep 17 00:00:00 2001 From: russell Date: Thu, 26 Jul 2007 15:49:18 +0000 Subject: 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 --- apps/app_adsiprog.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'apps/app_adsiprog.c') 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); } -- cgit v1.2.3