mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@77299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -548,9 +548,7 @@ static int load_module(void)
|
||||
}
|
||||
|
||||
ast_config_engine_register(&pgsql_engine);
|
||||
if (option_verbose) {
|
||||
ast_verbose("Postgresql RealTime driver loaded.\n");
|
||||
}
|
||||
ast_verb(1, "Postgresql RealTime driver loaded.\n");
|
||||
ast_cli_register_multiple(cli_realtime, sizeof(cli_realtime) / sizeof(struct ast_cli_entry));
|
||||
|
||||
ast_mutex_unlock(&pgsql_lock);
|
||||
@@ -569,9 +567,7 @@ static int unload_module(void)
|
||||
};
|
||||
ast_cli_unregister_multiple(cli_realtime, sizeof(cli_realtime) / sizeof(struct ast_cli_entry));
|
||||
ast_config_engine_deregister(&pgsql_engine);
|
||||
if (option_verbose) {
|
||||
ast_verbose("Postgresql RealTime unloaded.\n");
|
||||
}
|
||||
ast_verb(1, "Postgresql RealTime unloaded.\n");
|
||||
|
||||
/* Unlock so something else can destroy the lock. */
|
||||
ast_mutex_unlock(&pgsql_lock);
|
||||
@@ -596,7 +592,7 @@ static int reload(void)
|
||||
ast_debug(1, "Postgresql RealTime: Cannot Connect: %s\n", PQerrorMessage(pgsqlConn));
|
||||
}
|
||||
|
||||
ast_verbose(VERBOSE_PREFIX_2 "Postgresql RealTime reloaded.\n");
|
||||
ast_verb(2, "Postgresql RealTime reloaded.\n");
|
||||
|
||||
/* Done reloading. Release lock so others can now use driver. */
|
||||
ast_mutex_unlock(&pgsql_lock);
|
||||
|
||||
Reference in New Issue
Block a user