Show bus status and PDO slaves status in master info file.
authorFlorian Pose <fp@igh-essen.com>
Wed, 12 Sep 2007 12:30:48 +0000
changeset 714 898f87414af1
parent 713 ae41cadd25b6
child 715 f12ff7c08623
Show bus status and PDO slaves status in master info file.
master/master.c
--- a/master/master.c	Wed Sep 12 10:07:55 2007 +0000
+++ b/master/master.c	Wed Sep 12 12:30:48 2007 +0000
@@ -959,6 +959,10 @@
 
     off += sprintf(buffer + off, "\nSlaves: %i\n",
                    master->slave_count);
+    off += sprintf(buffer + off, "Status: %s\n",
+                   master->fsm.tainted ? "TAINTED" : "sane");
+    off += sprintf(buffer + off, "PDO slaves: %s\n",
+                   master->pdo_slaves_offline ? "INCOMPLETE" : "online");
 
     off += sprintf(buffer + off, "\nDevices:\n");