summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2008-02-05 23:00:15 +0000
committerMark Michelson <mmichelson@digium.com>2008-02-05 23:00:15 +0000
commitfe9821cc1066c5233eda63b5d747096f41e8a24c (patch)
tree5c9c08fb9ce70cd29aa48d1b901718df97e63dac /res
parentbb156b5cb5d761722327d293b6d28d8e913bb9fa (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: https://origsvn.digium.com/svn/asterisk/trunk@102525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r--res/res_agi.c20
-rw-r--r--res/res_jabber.c3
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);
}