]> git.mxchange.org Git - flightgear.git/commitdiff
- use proper error output method
authormfranz <mfranz>
Fri, 31 Mar 2006 16:56:14 +0000 (16:56 +0000)
committermfranz <mfranz>
Fri, 31 Mar 2006 16:56:14 +0000 (16:56 +0000)
- warnings--

src/Airports/dynamics.cxx
src/Airports/runwayprefs.cxx
src/Traffic/TrafficMgr.cxx

index def5007aeb9dea5ed05c2292734a7b324eca006f..b4816611c0d61d0ae951c1164dd003f23100ee72 100644 (file)
@@ -57,8 +57,8 @@ SG_USING_STD(random_shuffle);
 /********** FGAirport Dynamics *********************************************/
 
 FGAirportDynamics::FGAirportDynamics(double lat, double lon, double elev, string id) :
-  _latitude(lat),
   _longitude(lon),
+  _latitude(lat),
   _elevation(elev),
   _id(id)
 {
@@ -437,13 +437,11 @@ void  FGAirportDynamics::pi (const char * target, const char * data) {
 }
 
 void  FGAirportDynamics::warning (const char * message, int line, int column) {
-  //cout << "Warning: " << message << " (" << line << ',' << column << ')'   
-  //     << endl;
+  SG_LOG(SG_IO, SG_WARN, "Warning: " << message << " (" << line << ',' << column << ')');
 }
 
 void  FGAirportDynamics::error (const char * message, int line, int column) {
-  //cout << "Error: " << message << " (" << line << ',' << column << ')'
-  //     << endl;
+  SG_LOG(SG_IO, SG_ALERT, "Error: " << message << " (" << line << ',' << column << ')');
 }
 
 void FGAirportDynamics::setRwyUse(const FGRunwayPreference& ref)
index 1a7f1dd117d8f81f20389160dc66f248754e1763..60e7f0710456fcbf78baf1e029b396e81e0ae3e5 100644 (file)
@@ -566,11 +566,9 @@ void  FGRunwayPreference::pi (const char * target, const char * data) {
 }
 
 void  FGRunwayPreference::warning (const char * message, int line, int column) {
-  //cout << "Warning: " << message << " (" << line << ',' << column << ')'   
-  //     << endl;
+  SG_LOG(SG_IO, SG_WARN, "Warning: " << message << " (" << line << ',' << column << ')');
 }
 
 void  FGRunwayPreference::error (const char * message, int line, int column) {
-  //cout << "Error: " << message << " (" << line << ',' << column << ')'
-  //     << endl;
+  SG_LOG(SG_IO, SG_ALERT, "Error: " << message << " (" << line << ',' << column << ')');
 }
index f49e926367729450ce0f0ddabdd1755fcf6f8633..d9cba6e0c847616909692611af6891952ea88f69 100644 (file)
@@ -268,11 +268,9 @@ void  FGTrafficManager::pi (const char * target, const char * data) {
 }
 
 void  FGTrafficManager::warning (const char * message, int line, int column) {
-  cout << "Warning: " << message << " (" << line << ',' << column << ')'   
-       << endl;
+  SG_LOG(SG_IO, SG_WARN, "Warning: " << message << " (" << line << ',' << column << ')');
 }
 
 void  FGTrafficManager::error (const char * message, int line, int column) {
-  cout << "Error: " << message << " (" << line << ',' << column << ')'
-       << endl;
+  SG_LOG(SG_IO, SG_ALERT, "Error: " << message << " (" << line << ',' << column << ')');
 }