tool/CommandEoe.cpp
changeset 1827 489be2180f71
parent 1826 ec6223c3b7ec
child 1869 14f634f5b613
--- a/tool/CommandEoe.cpp	Wed Feb 24 16:27:11 2010 +0100
+++ b/tool/CommandEoe.cpp	Wed Feb 24 17:24:20 2010 +0100
@@ -84,15 +84,17 @@
         m.open(MasterDevice::Read);
         m.getMaster(&master);
 
-        if (doIndent) {
-            cout << "Master" << dec << *mi << endl;
+        if (master.eoe_handler_count) {
+            if (doIndent) {
+                cout << "Master" << dec << *mi << endl;
+            }
+
+            cout << indent << "Interface  Slave  State  "
+                << "RxBytes  RxRate  "
+                << "TxBytes  TxRate  TxQueue"
+                << endl;
         }
 
-        cout << indent << "Interface  Slave  State  "
-            << "RxBytes  RxRate  "
-            << "TxBytes  TxRate  TxQueue"
-            << endl;
-
         for (i = 0; i < master.eoe_handler_count; i++) {
             stringstream queue;