diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-28 21:32:48 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-28 21:32:48 +0000 |
commit | 9cb49092c8c33011580b1fee644a96bd57fd72b4 (patch) | |
tree | ccb01541f202b4ff5fa2699daa4ac2d97f68aadf /indications.c | |
parent | 960b12736d958ee09d603c2ed7a16d9309e709e0 (diff) |
Various minor cleanups (bug #931)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2087 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'indications.c')
-rwxr-xr-x | indications.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indications.c b/indications.c index 864fd6a3d..55e11ff8b 100755 --- a/indications.c +++ b/indications.c @@ -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; |