summaryrefslogtreecommitdiff
path: root/main/indications.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-07-26 15:49:18 +0000
committerRussell Bryant <russell@russellbryant.com>2007-07-26 15:49:18 +0000
commitf8483a0d04f73e9d4c4f665efd5397cf96b17510 (patch)
treede4bd130dafa592858306d2ac6bcc5f85fd51cc8 /main/indications.c
parent51e7035dfeca1def3070ca65f18153ee1d340ba9 (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: https://origsvn.digium.com/svn/asterisk/trunk@77299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/indications.c')
-rw-r--r--main/indications.c9
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;
}