diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-05 23:00:15 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-05 23:00:15 +0000 |
commit | 8ceb053cff649938ab88166c64760dee8727403c (patch) | |
tree | 5c9c08fb9ce70cd29aa48d1b901718df97e63dac /res | |
parent | a53c56e616a589654dc7ebe47297426a1a1eac74 (diff) |
Get rid of any remaining ast_verbose calls in the code in favor of
ast_verb
(closes issue #11934)
Reported by: mvanbaak
Patches:
20080205_astverb-2.diff.txt uploaded by mvanbaak (license 7)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102525 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_agi.c | 20 | ||||
-rw-r--r-- | res/res_jabber.c | 3 |
2 files changed, 2 insertions, 21 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 75692089b..0fea962fc 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -1584,7 +1584,6 @@ static int handle_getvariablefull(struct ast_channel *chan, AGI *agi, int argc, static int handle_verbose(struct ast_channel *chan, AGI *agi, int argc, char **argv) { int level = 0; - char *prefix; if (argc < 2) return RESULT_SHOWUSAGE; @@ -1592,24 +1591,7 @@ static int handle_verbose(struct ast_channel *chan, AGI *agi, int argc, char **a if (argv[2]) sscanf(argv[2], "%d", &level); - switch (level) { - case 4: - prefix = VERBOSE_PREFIX_4; - break; - case 3: - prefix = VERBOSE_PREFIX_3; - break; - case 2: - prefix = VERBOSE_PREFIX_2; - break; - case 1: - default: - prefix = VERBOSE_PREFIX_1; - break; - } - - if (level <= option_verbose) - ast_verbose("%s %s: %s\n", prefix, chan->data, argv[1]); + ast_verb(level, "%s: %s\n", chan->data, argv[1]); ast_agi_fdprintf(chan, agi->fd, "200 result=1\n"); diff --git a/res/res_jabber.c b/res/res_jabber.c index bd12d2977..8e7a3d2af 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -1893,8 +1893,7 @@ static void *aji_recv_loop(void *data) int res = IKS_HOOK; while(res != IKS_OK) { - if(option_verbose > 3) - ast_verbose("JABBER: Connecting.\n"); + ast_verb(4, "JABBER: Connecting.\n"); res = aji_reconnect(client); sleep(4); } |