diff -r 69056c46aa4d -r bc2d4bf9cbe5 tool/CommandGraph.cpp --- a/tool/CommandGraph.cpp Thu Sep 06 19:52:17 2012 +0200 +++ b/tool/CommandGraph.cpp Thu Sep 06 20:22:24 2012 +0200 @@ -83,7 +83,7 @@ portMedia[EC_PORT_EBUS] = "EBUS"; mediaWeights[EC_PORT_EBUS] = 5; - + if (args.size()) { stringstream err; err << "'" << getName() << "' takes no arguments!"; @@ -111,7 +111,7 @@ << " master [label=\"EtherCAT\\nMaster\"]" << endl; if (slaves.size()) { - cout << " master -- slave0"; + cout << " master -- slave0"; mi = portMedia.find(slaves.front().ports[0].desc); if (mi != portMedia.end()) cout << "[label=\"" << mi->second << "\"]"; @@ -176,14 +176,14 @@ /* Try medium of next-hop slave. */ mi = portMedia.find(next->ports[0].desc); } - + if (mi != portMedia.end()) cout << ",label=\"" << mi->second << "\""; wi = mediaWeights.find(si->ports[i].desc); if (wi != mediaWeights.end()) cout << ",weight=\"" << wi->second << "\""; - + cout << "]" << endl; }