From: mfranz Date: Thu, 12 Oct 2006 21:48:18 +0000 (+0000) Subject: don't clutter the terminal with meaningless (to all but one developer) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f7df58c94cb3e7684f5c8642cb66ae00905f8ee;p=flightgear.git don't clutter the terminal with meaningless (to all but one developer) "cerr" messages (SG_LOG/SG_BULK is meant for that) --- diff --git a/src/Airports/groundnetwork.cxx b/src/Airports/groundnetwork.cxx index 6d856f23a..233372993 100644 --- a/src/Airports/groundnetwork.cxx +++ b/src/Airports/groundnetwork.cxx @@ -283,8 +283,8 @@ void FGGroundNetwork::init() int start2 = (*j)->getStart()->getIndex(); int end2 = (*j)->getEnd()->getIndex(); int oppIndex = (*j)->getIndex(); - cerr << "Opposite of " << (*i)->getIndex() << " (" << start1 << "," << end1 << ") " - << "happens to be " << oppIndex << " (" << start2 << "," << end2 << ") " << endl; +// cerr << "Opposite of " << (*i)->getIndex() << " (" << start1 << "," << end1 << ") " +// << "happens to be " << oppIndex << " (" << start2 << "," << end2 << ") " << endl; break; } j++; @@ -352,7 +352,7 @@ FGTaxiSegment *FGGroundNetwork::findSegment(int idx) return segments[idx-1]->getAddress(); else { - cerr << "Alert: trying to find invalid segment " << idx << endl; + //cerr << "Alert: trying to find invalid segment " << idx << endl; return 0; } } diff --git a/src/Airports/simple.cxx b/src/Airports/simple.cxx index fa159ca96..cf969de1f 100644 --- a/src/Airports/simple.cxx +++ b/src/Airports/simple.cxx @@ -90,7 +90,7 @@ FGAirportDynamics * FGAirport::getDynamics() return dynamics; } else { FGRunwayPreference rwyPrefs; - cerr << "Trying to load dynamics for " << _id << endl; + //cerr << "Trying to load dynamics for " << _id << endl; dynamics = new FGAirportDynamics(_latitude, _longitude, _elevation, _id); SGPath parkpath( globals->get_fg_root() ); diff --git a/src/Airports/trafficcontrol.cxx b/src/Airports/trafficcontrol.cxx index fe64bb624..1fd721a83 100644 --- a/src/Airports/trafficcontrol.cxx +++ b/src/Airports/trafficcontrol.cxx @@ -39,11 +39,11 @@ void FGTrafficRecord::setPositionAndIntentions(int pos, FGAIFlightPlan *route) intVecIterator i = intentions.begin(); if ((*i) != pos) { SG_LOG(SG_GENERAL, SG_ALERT, "Error in FGTrafficRecord::setPositionAndIntentions"); - cerr << "Pos : " << pos << " Curr " << *(intentions.begin()) << endl; + //cerr << "Pos : " << pos << " Curr " << *(intentions.begin()) << endl; for (intVecIterator i = intentions.begin(); i != intentions.end() ; i++) { - cerr << (*i) << " "; + //cerr << (*i) << " "; } - cerr << endl; + //cerr << endl; } intentions.erase(i); } else { @@ -137,7 +137,7 @@ int FGTrafficRecord::crosses(FGGroundNetwork *net, FGTrafficRecord &other) if ((*i) > 0) { if ((currentTargetNode == net->findSegment(*i)->getEnd()->getIndex())) { - cerr << "Current crosses at " << currentTargetNode < 0) { if (otherTargetNode == net->findSegment(*i)->getEnd()->getIndex()) { - cerr << "Other crosses at " << currentTargetNode <getIndex() == net->findSegment(*j)->getIndex()) { - cerr << "Nodes " << net->findSegment(*i)->getIndex() - << " and " << net->findSegment(*j)->getIndex() - << " are opposites " << endl; +// cerr << "Nodes " << net->findSegment(*i)->getIndex() +// << " and " << net->findSegment(*j)->getIndex() +// << " are opposites " << endl; if (net->findSegment(*i)->getStart()->getIndex() == node) { { - cerr << "Found the node" << endl; + //cerr << "Found the node" << endl; return true; } }