Improved dictionary timeout messages.
authorFlorian Pose <fp@igh-essen.com>
Tue, 26 Jan 2010 11:35:58 +0100
changeset 1793 651f6ba216c5
parent 1792 3eb466e9bad5
child 1794 94e0e1756dec
Improved dictionary timeout messages.
master/fsm_coe.c
--- a/master/fsm_coe.c	Tue Jan 26 11:20:07 2010 +0100
+++ b/master/fsm_coe.c	Tue Jan 26 11:35:58 2010 +0100
@@ -627,8 +627,9 @@
             (datagram->jiffies_received - fsm->jiffies_start) * 1000 / HZ;
         if (diff_ms >= EC_FSM_COE_DICT_TIMEOUT) {
             fsm->state = ec_fsm_coe_error;
-            EC_ERR("Timeout while waiting for SDO object description "
-                    "response on slave %u.\n", slave->ring_position);
+            EC_ERR("Timeout while waiting for SDO 0x%04x object description "
+                    "response on slave %u.\n", fsm->sdo->index,
+                    slave->ring_position);
             return;
         }
 
@@ -863,8 +864,9 @@
             (datagram->jiffies_received - fsm->jiffies_start) * 1000 / HZ;
         if (diff_ms >= EC_FSM_COE_DICT_TIMEOUT) {
             fsm->state = ec_fsm_coe_error;
-            EC_ERR("Timeout while waiting for SDO entry description response "
-                    "on slave %u.\n", slave->ring_position);
+            EC_ERR("Timeout while waiting for SDO entry 0x%04x:%x"
+                    " description response on slave %u.\n",
+                    fsm->sdo->index, fsm->subindex, slave->ring_position);
             return;
         }