# HG changeset patch # User Florian Pose # Date 1161348306 0 # Node ID d36808888817560c97643160bdcbabcf080357bd # Parent b792665b2dba42b8b4a750cda28f7dc36b54f433 Better debugging output for SDO dictionaries. diff -r b792665b2dba -r d36808888817 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; }