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_zapscan.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_zapscan.c')
-rw-r--r-- | apps/app_zapscan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_zapscan.c b/apps/app_zapscan.c index 76cfbe3b0..1530d7f7b 100644 --- a/apps/app_zapscan.c +++ b/apps/app_zapscan.c @@ -231,7 +231,7 @@ static int conf_run(struct ast_channel *chan, int confno, int confflags) input[ic++] = '\0'; ic=0; ret = atoi(input); - ast_verbose(VERBOSE_PREFIX_3 "Zapscan: change channel to %d\n",ret); + ast_verb(3, "Zapscan: change channel to %d\n",ret); break; } } @@ -300,7 +300,7 @@ static int conf_exec(struct ast_channel *chan, void *data) desired_group = ast_strdupa(data); if(!ast_strlen_zero(desired_group)) { - ast_verbose(VERBOSE_PREFIX_3 "Scanning for group %s\n", desired_group); + ast_verb(3, "Scanning for group %s\n", desired_group); search_group = 1; } @@ -330,7 +330,7 @@ static int conf_exec(struct ast_channel *chan, void *data) if (tempchan && search_group) { const char *mygroup; if((mygroup = pbx_builtin_getvar_helper(tempchan, "GROUP")) && (!strcmp(mygroup, desired_group))) { - ast_verbose(VERBOSE_PREFIX_3 "Found Matching Channel %s in group %s\n", tempchan->name, desired_group); + ast_verb(3, "Found Matching Channel %s in group %s\n", tempchan->name, desired_group); } else { ast_mutex_unlock(&tempchan->lock); lastchan = tempchan; @@ -338,7 +338,7 @@ static int conf_exec(struct ast_channel *chan, void *data) } } if (tempchan && (!strcmp(tempchan->tech->type, "Zap")) && (tempchan != chan) ) { - ast_verbose(VERBOSE_PREFIX_3 "Zap channel %s is in-use, monitoring...\n", tempchan->name); + ast_verb(3, "Zap channel %s is in-use, monitoring...\n", tempchan->name); ast_copy_string(confstr, tempchan->name, sizeof(confstr)); ast_mutex_unlock(&tempchan->lock); if ((tmp = strchr(confstr,'-'))) { |