Added debugging.
authorFlorian Pose <fp@igh-essen.com>
Fri, 30 May 2008 14:31:02 +0000
changeset 929 64de138e6a54
parent 928 7fbc0b943c65
child 930 35358e9bb62b
Added debugging.
master/slave_config.c
--- a/master/slave_config.c	Fri May 30 10:49:51 2008 +0000
+++ b/master/slave_config.c	Fri May 30 14:31:02 2008 +0000
@@ -364,6 +364,10 @@
 	slave->config = sc;
 	sc->slave = slave;
 
+    if (sc->master->debug_level)
+        EC_DBG("Attached slave %u to config %u:%u.\n",
+                slave->ring_position, sc->alias, sc->position);
+
     ec_slave_request_state(slave, EC_SLAVE_STATE_OP);
 
 	return 0;