From 6d7f65a072216191ba9ed60ea804b229d70f9b38 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Tue, 24 Oct 2006 08:09:42 +0000 Subject: [PATCH] Minot output changes in fsm.c --- master/fsm.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/master/fsm.c b/master/fsm.c index 2c8e4d12..daedf2e7 100644 --- a/master/fsm.c +++ b/master/fsm.c @@ -534,17 +534,16 @@ void ec_fsm_master_action_process_states(ec_fsm_t *fsm && (slave->configured || slave->current_state == EC_SLAVE_STATE_INIT))) continue; + ec_state_string(slave->current_state, old_state); + ec_state_string(slave->requested_state, new_state); + if (!slave->configured && slave->current_state != EC_SLAVE_STATE_INIT) { - ec_state_string(slave->current_state, old_state); - EC_INFO("Reconfiguring slave %i (%s).\n", - slave->ring_position, old_state); + EC_INFO("Reconfiguring slave %i (%s -> %s).\n", + slave->ring_position, old_state, new_state); } - - if (slave->current_state != slave->requested_state) { - ec_state_string(slave->current_state, old_state); - ec_state_string(slave->requested_state, new_state); - EC_INFO("Changing state of slave %i from %s to %s.\n", + else if (slave->current_state != slave->requested_state) { + EC_INFO("Changing state of slave %i (%s -> %s).\n", slave->ring_position, old_state, new_state); }