Better debugging output for SDO dictionaries.
authorFlorian Pose <fp@igh-essen.com>
Fri, 20 Oct 2006 12:45:06 +0000
changeset 425 d36808888817
parent 424 b792665b2dba
child 426 0d3022ee35a2
Better debugging output for SDO dictionaries.
master/fsm.c
--- a/master/fsm.c	Fri Oct 20 12:41:22 2006 +0000
+++ b/master/fsm.c	Fri Oct 20 12:45:06 2006 +0000
@@ -2265,7 +2265,8 @@
     if (datagram->state != EC_DATAGRAM_RECEIVED
         || datagram->working_counter != 1) {
         fsm->coe_state = ec_fsm_error;
-        EC_ERR("Reception of CoE dictionary request failed.\n");
+        EC_ERR("Reception of CoE dictionary request failed on slave %i.\n",
+               slave->ring_position);
         return;
     }
 
@@ -2290,7 +2291,8 @@
     if (datagram->state != EC_DATAGRAM_RECEIVED
         || datagram->working_counter != 1) {
         fsm->coe_state = ec_fsm_error;
-        EC_ERR("Reception of CoE mailbox check datagram failed.\n");
+        EC_ERR("Reception of CoE mailbox check datagram failed on slave %i.\n",
+               slave->ring_position);
         return;
     }
 
@@ -2333,7 +2335,8 @@
     if (datagram->state != EC_DATAGRAM_RECEIVED
         || datagram->working_counter != 1) {
         fsm->coe_state = ec_fsm_error;
-        EC_ERR("Reception of CoE dictionary response failed.\n");
+        EC_ERR("Reception of CoE dictionary response failed on slave %i.\n",
+               slave->ring_position);
         return;
     }
 
@@ -2454,7 +2457,6 @@
         fsm->coe_state = ec_fsm_error;
         EC_ERR("Reception of CoE SDO description"
                " request failed on slave %i.\n", slave->ring_position);
-
         return;
     }
 
@@ -2481,7 +2483,6 @@
         fsm->coe_state = ec_fsm_error;
         EC_ERR("Reception of CoE mailbox check datagram failed on slave %i.\n",
                slave->ring_position);
-
         return;
     }