]> git.mxchange.org Git - flightgear.git/commitdiff
Merge branch 'next' of gitorious.org:fg/flightgear into next
authorJames Turner <zakalawe@mac.com>
Sat, 9 Feb 2013 14:27:15 +0000 (14:27 +0000)
committerJames Turner <zakalawe@mac.com>
Sat, 9 Feb 2013 14:27:15 +0000 (14:27 +0000)
utils/fgai/fgai.cxx

index f720b5dc382c5937f97e3c5adf33ee7c97fb0b01..4948693d471cd2f3f7b35d762c02937e2bf8327f 100644 (file)
 #include <config.h>
 #endif
 
+#include <cstdio>
+
 #include <simgear/misc/sg_path.hxx>
+#include <simgear/debug/logstream.hxx>
 
 #include "AIObject.hxx"
 #include "AIManager.hxx"
@@ -547,8 +550,8 @@ main(int argc, char* argv[])
             manager->setFederationObjectModel(optarg);
             break;
         case 'p':
-            logbuf::set_log_classes(SG_ALL);
-            logbuf::set_log_priority(sgDebugPriority(atoi(optarg)));
+            sglog().set_log_classes(SG_ALL);
+            sglog().set_log_priority(sgDebugPriority(atoi(optarg)));
             break;
         case 'R':
             manager->setTimeRegulating(true);