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 /main/indications.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 'main/indications.c')
-rw-r--r-- | main/indications.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/main/indications.c b/main/indications.c index cc714707f..61f3328b5 100644 --- a/main/indications.c +++ b/main/indications.c @@ -369,8 +369,7 @@ int ast_set_indication_country(const char *country) if (!country || !(zone = ast_get_indication_zone(country))) return 1; - if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "Setting default indication country to '%s'\n", country); + ast_verb(3, "Setting default indication country to '%s'\n", country); /* Protect the current tonezone using the tone_zones lock as well */ AST_RWLIST_WRLOCK(&tone_zones); @@ -494,8 +493,7 @@ int ast_register_indication_country(struct ind_tone_zone *zone) /* It's all over. */ AST_RWLIST_UNLOCK(&tone_zones); - if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "Registered indication country '%s'\n", zone->country); + ast_verb(3, "Registered indication country '%s'\n", zone->country); return 0; } @@ -518,8 +516,7 @@ int ast_unregister_indication_country(const char *country) } /* Remove from the list */ AST_RWLIST_REMOVE_CURRENT(&tone_zones, list); - if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "Unregistered indication country '%s'\n", tz->country); + ast_verb(3, "Unregistered indication country '%s'\n", tz->country); free_zone(tz); res = 0; } |