[svn-commits] russell: branch group/res_config_ldap r78032 - /team/group/res_config_ldap/res/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Aug 2 21:26:53 CDT 2007


Author: russell
Date: Thu Aug  2 21:26:52 2007
New Revision: 78032

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78032
Log:
remove a random define and convert stuff to ast_verb()

Modified:
    team/group/res_config_ldap/res/res_config_ldap.c

Modified: team/group/res_config_ldap/res/res_config_ldap.c
URL: http://svn.digium.com/view/asterisk/team/group/res_config_ldap/res/res_config_ldap.c?view=diff&rev=78032&r1=78031&r2=78032
==============================================================================
--- team/group/res_config_ldap/res/res_config_ldap.c (original)
+++ team/group/res_config_ldap/res/res_config_ldap.c Thu Aug  2 21:26:52 2007
@@ -1320,8 +1320,7 @@
 		ast_log(LOG_WARNING, "Couldn't establish connection. Check debug.\n");
 
 	ast_config_engine_register(&ldap_engine);
-	if (option_verbose) 
-		ast_verbose("LDAP RealTime driver loaded.\n");
+	ast_verb(1, "LDAP RealTime driver loaded.\n");
 	ast_cli_register(&cli_realtime_ldap_status);
 
 	ast_mutex_unlock(&ldap_lock);
@@ -1342,10 +1341,7 @@
 	}
 	ast_cli_unregister(&cli_realtime_ldap_status);
 	ast_config_engine_deregister(&ldap_engine);
-	if (option_verbose)
-		ast_verbose("LDAP RealTime unloaded.\n");
-
-	#define	STANDARD_HANGUP_LOCALUSERS
+	ast_verb(1, "LDAP RealTime unloaded.\n");
 
 	/* Unlock so something else can destroy the lock. */
 	ast_mutex_unlock(&ldap_lock);
@@ -1371,7 +1367,7 @@
 	if (!ldap_reconnect()) 
 		ast_log(LOG_WARNING, "Couldn't establish connection. Check debug.\n");
 
-	ast_verbose(VERBOSE_PREFIX_2 "LDAP RealTime reloaded.\n");
+	ast_verb(2, "LDAP RealTime reloaded.\n");
 
 	/* Done reloading. Release lock so others can now use driver. */
 	ast_mutex_unlock(&ldap_lock);




More information about the svn-commits mailing list