[asterisk-commits] rizzo: branch rizzo/astobj2 r47326 - /team/rizzo/astobj2/main/astobj2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Nov 8 09:30:47 MST 2006


Author: rizzo
Date: Wed Nov  8 10:30:46 2006
New Revision: 47326

URL: http://svn.digium.com/view/asterisk?rev=47326&view=rev
Log:
slightly less verbose debugging now that things start working well.


Modified:
    team/rizzo/astobj2/main/astobj2.c

Modified: team/rizzo/astobj2/main/astobj2.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/main/astobj2.c?rev=47326&r1=47325&r2=47326&view=diff
==============================================================================
--- team/rizzo/astobj2/main/astobj2.c (original)
+++ team/rizzo/astobj2/main/astobj2.c Wed Nov  8 10:30:46 2006
@@ -96,8 +96,6 @@
 	/* we modify with an atomic operation the reference counter */
 	ret = ast_atomic_fetchadd_int( &obj->priv_data.ref_counter, delta );
 	current_value = ret + delta;
- 	ast_log(LOG_NOTICE, "+++ refcount %d for %p\n", current_value, user_data);
-
 	/* this case must never happen */
 	if (current_value < 0) {
 		ast_log(LOG_ERROR, "refcount %d on object %p\n", current_value, user_data);
@@ -105,7 +103,7 @@
 	}
 
 	if (current_value <= 0) { /* last reference, destroy the object */
-		ast_log(LOG_DEBUG, "refcount %d on object %p, we destroy the object\n", current_value, user_data);
+		ast_log(LOG_NOTICE, "refcount %d on object %p, we destroy the object\n", current_value, user_data);
 
 		if (obj->priv_data.destructor_fn != NULL) 
 			obj->priv_data.destructor_fn(user_data);



More information about the asterisk-commits mailing list