[asterisk-commits] mmichelson: branch group/CCSS r217479 - /team/group/CCSS/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 9 14:37:38 CDT 2009


Author: mmichelson
Date: Wed Sep  9 14:37:36 2009
New Revision: 217479

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=217479
Log:
Add some debug lines and make the bitfield actually be a bitfield.


Modified:
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/main/ccss.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=217479&r1=217478&r2=217479
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Wed Sep  9 14:37:36 2009
@@ -495,8 +495,8 @@
 };
 
 enum match_flags {
-	MATCH_NO_MONITOR,
-	MATCH_MONITOR,
+	MATCH_NO_MONITOR = (1 << 0),
+	MATCH_MONITOR = (1 << 1),
 };
 
 static int match_agent(void *obj, void *arg, void *data, int flags)
@@ -505,6 +505,10 @@
 	const char *name = arg;
 	unsigned long match_flags = *(unsigned long *)data;
 	int possible_match = 0;
+
+	ast_log(LOG_NOTICE, "Iterating on %s, monitor is %p, and flags is %lu\n",
+			core_instance->agent->interface, core_instance->monitor, match_flags);
+	ast_log(LOG_NOTICE, "Oh and I'm searching for %s\n", name);
 
 	if ((match_flags & MATCH_NO_MONITOR) && !core_instance->monitor) {
 		possible_match = 1;
@@ -606,6 +610,7 @@
 	}
 	ao2_ref(interface_tree, +1);
 	agent->interface_tree = interface_tree;
+	ast_log(LOG_NOTICE, "I created an agent with core_id %d and caller %s\n", agent->core_id, agent->interface);
 	return agent;
 }
 




More information about the asterisk-commits mailing list