Various minor cleanups (bug #931)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-01-28 21:32:48 +00:00
parent c0eb1e6bfe
commit 695422d698
7 changed files with 19 additions and 14 deletions

View File

@@ -235,7 +235,8 @@ int ast_set_indication_country(const char *country)
if (country) {
struct tone_zone *z = ast_get_indication_zone(country);
if (z) {
ast_verbose(VERBOSE_PREFIX_3 "Setting default indication country to '%s'\n",country);
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Setting default indication country to '%s'\n",country);
current_tonezone = z;
return 0;
}
@@ -359,7 +360,8 @@ int ast_register_indication_country(struct tone_zone *zone)
tone_zones = zone;
ast_mutex_unlock(&tzlock);
ast_verbose(VERBOSE_PREFIX_3 "Registered indication country '%s'\n",zone->country);
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Registered indication country '%s'\n",zone->country);
return 0;
}
@@ -390,7 +392,8 @@ int ast_unregister_indication_country(const char *country)
ast_log(LOG_NOTICE,"Removed default indication country '%s'\n",tz->country);
current_tonezone = NULL;
}
ast_verbose(VERBOSE_PREFIX_3 "Unregistered indication country '%s'\n",tz->country);
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Unregistered indication country '%s'\n",tz->country);
free_zone(tz);
tz = tmp;
res = 0;