Improved output of 'ethercat domain'.
authorFlorian Pose <fp@igh-essen.com>
Wed, 04 Jun 2008 14:35:40 +0000
changeset 951 dc84a0af63da
parent 950 8b00e63fff90
child 952 e292bdcb87f8
Improved output of 'ethercat domain'.
tools/Master.cpp
--- a/tools/Master.cpp	Wed Jun 04 13:17:15 2008 +0000
+++ b/tools/Master.cpp	Wed Jun 04 14:35:40 2008 +0000
@@ -203,8 +203,8 @@
 		<< hex << setfill('0') << setw(8) << domain.logical_base_address
 		<< ", Size " << dec << setfill(' ') << setw(3) << domain.data_size
 		<< ", WorkingCounter "
-		<< dec << setw(3) << domain.working_counter
-		<< " of " << setw(3) << domain.expected_working_counter << endl;
+		<< dec << domain.working_counter << "/"
+        << domain.expected_working_counter << endl;
 
     if (!domain.data_size)
         return;
@@ -221,14 +221,13 @@
     for (i = 0; i < domain.fmmu_count; i++) {
         getFmmu(&fmmu, domainIndex, i);
 
-        cout << "  " << (fmmu.fmmu_dir ? "Inputs" : "Outputs")
-            << " from slave config " << fmmu.slave_config_alias
-            << ":" << fmmu.slave_config_position
+        cout << "  SlaveConfig "
+            << fmmu.slave_config_alias << ":" << fmmu.slave_config_position
+            << ", Dir "
+            << setfill(' ') << setw(3) << (fmmu.fmmu_dir ? "In" : "Out")
             << ", LogAddr 0x" 
             << hex << setfill('0') << setw(8) << fmmu.logical_address
-            << ", Size "
-            << dec << setfill(' ') << setw(3) << fmmu.data_size
-            << endl;
+            << ", Size " << dec << fmmu.data_size << endl;
 
         dataOffset = fmmu.logical_address - domain.logical_base_address;
         if (dataOffset + fmmu.data_size > domain.data_size) {