Better outputs concerning responding slaves.
authorFlorian Pose <fp@igh-essen.com>
Thu, 06 Apr 2006 09:32:30 +0000
changeset 166 29b19a90ff3f
parent 165 51dea253c49d
child 167 37c65411b411
Better outputs concerning responding slaves.
master/domain.c
master/master.c
--- a/master/domain.c	Thu Apr 06 09:16:25 2006 +0000
+++ b/master/domain.c	Thu Apr 06 09:32:30 2006 +0000
@@ -241,8 +241,8 @@
 {
     if (count != domain->response_count) {
         domain->response_count = count;
-        EC_INFO("Domain %08X state change - %i slave%s responding.\n",
-                (u32) domain, count, count == 1 ? "" : "s");
+        EC_INFO("Domain 0x%08X working counter change: %i\n",
+                (u32) domain, count);
     }
 }
 
--- a/master/master.c	Thu Apr 06 09:16:25 2006 +0000
+++ b/master/master.c	Thu Apr 06 09:32:30 2006 +0000
@@ -956,8 +956,8 @@
             return -1;
     }
 
-    master->slaves_responding = master->slave_count;
-    master->slave_states = EC_SLAVE_STATE_OP;
+    master->slaves_responding = 0;
+    master->slave_states = EC_SLAVE_STATE_INIT;
 
     return 0;
 }