# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1161677382 0
# Node ID ef80f2faa2c54690284cff68bd8503e7507a3ba2
# Parent  63214beb641d0a79db51abd51ebe5515c0e80f4d
Minot output changes in fsm.c

diff -r 63214beb641d -r ef80f2faa2c5 master/fsm.c
--- a/master/fsm.c	Tue Oct 24 08:00:24 2006 +0000
+++ b/master/fsm.c	Tue Oct 24 08:09:42 2006 +0000
@@ -534,17 +534,16 @@
                 && (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);
-        }
-
-        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",
+            EC_INFO("Reconfiguring slave %i (%s -> %s).\n",
+                    slave->ring_position, old_state, new_state);
+        }
+        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);
         }