Don't show Pdo (entry) names in configuration output.
authorFlorian Pose <fp@igh-essen.com>
Fri, 01 Aug 2008 12:32:53 +0000
changeset 1188 3b4e82d9904b
parent 1187 aa616c3286ce
child 1189 acc6430bfb32
Don't show Pdo (entry) names in configuration output.
tool/CommandConfig.cpp
--- a/tool/CommandConfig.cpp	Fri Aug 01 12:29:04 2008 +0000
+++ b/tool/CommandConfig.cpp	Fri Aug 01 12:32:53 2008 +0000
@@ -139,19 +139,18 @@
                 for (k = 0; k < configIter->syncs[j].pdo_count; k++) {
                     m.getConfigPdo(&pdo, configIter->config_index, j, k);
 
-                    cout << "  Pdo 0x" << hex
-                        << setw(4) << pdo.index
-                        << " \"" << pdo.name << "\"" << endl;
+                    cout << "  Pdo 0x" << hex << setw(4) << pdo.index << endl;
 
                     for (l = 0; l < pdo.entry_count; l++) {
                         m.getConfigPdoEntry(&entry,
                                 configIter->config_index, j, k, l);
 
-                        cout << "    Pdo entry 0x" << hex
+                        cout << "    Pdo entry 0x" << hex << setfill('0')
                             << setw(4) << entry.index << ":"
                             << setw(2) << (unsigned int) entry.subindex
-                            << ", " << dec << (unsigned int) entry.bit_length
-                            << " bit, \"" << entry.name << "\"" << endl;
+                            << ", " << dec << setfill(' ')
+                            << setw(2) << (unsigned int) entry.bit_length
+                            << " bit" << endl;
                     }
                 }
             }