From 4f3c4dc7f238b64a21172be86266311c9c645c77 Mon Sep 17 00:00:00 2001 From: russell Date: Thu, 26 Jul 2007 15:49:18 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/trunk@77299 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx/pbx_gtkconsole.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'pbx/pbx_gtkconsole.c') diff --git a/pbx/pbx_gtkconsole.c b/pbx/pbx_gtkconsole.c index 9f9a1899e..e1cb6dc5a 100644 --- a/pbx/pbx_gtkconsole.c +++ b/pbx/pbx_gtkconsole.c @@ -313,8 +313,7 @@ static void exit_now(GtkWidget *widget, gpointer data) ast_update_use_count(); ast_unregister_verbose(verboser); ast_unload_resource("pbx_gtkconsole", 0); - if (option_verbose > 1) - ast_verbose(VERBOSE_PREFIX_2 "GTK Console Monitor Exiting\n"); + ast_verb(2, "GTK Console Monitor Exiting\n"); /* XXX Trying to quit after calling this makes asterisk segfault XXX */ } @@ -488,15 +487,14 @@ static int load_module(void *mod) if (!show_console()) { inuse++; ast_update_use_count(); - if (option_verbose > 1) - ast_verbose( VERBOSE_PREFIX_2 "Launched GTK Console monitor\n"); + ast_verb(2, "Launched GTK Console monitor\n"); } else ast_log(LOG_WARNING, "Unable to start GTK console\n"); } else { if (option_debug) ast_log(LOG_DEBUG, "Unable to start GTK console monitor -- ignoring\n"); - else if (option_verbose > 1) - ast_verbose( VERBOSE_PREFIX_2 "GTK is not available -- skipping monitor\n"); + else + ast_verb(2, "GTK is not available -- skipping monitor\n"); } return 0; } -- cgit v1.2.3