Show sync manager index in 'ethercat domain'.
authorFlorian Pose <fp@igh-essen.com>
Thu, 26 Jun 2008 14:56:39 +0000
changeset 1062 75a2b2934e2b
parent 1061 90c3d75057e4
child 1063 6dbc220fff91
Show sync manager index in 'ethercat domain'.
tools/Master.cpp
--- a/tools/Master.cpp	Thu Jun 26 14:28:09 2008 +0000
+++ b/tools/Master.cpp	Thu Jun 26 14:56:39 2008 +0000
@@ -1191,9 +1191,10 @@
 
         cout << "  SlaveConfig "
             << fmmu.slave_config_alias << ":" << fmmu.slave_config_position
-            << ", Dir "
-            << setfill(' ') << setw(3) << (fmmu.dir == EC_DIR_INPUT ? "In" : "Out")
-            << ", LogAddr 0x" 
+            << ", SM" << dec << (unsigned int) fmmu.sync_index << " ("
+            << setfill(' ') << setw(3)
+            << (fmmu.dir == EC_DIR_INPUT ? "Input" : "Output")
+            << "), LogAddr 0x" 
             << hex << setfill('0') << setw(8) << fmmu.logical_address
             << ", Size " << dec << fmmu.data_size << endl;