PBD::Debug to stdout
authorRobin Gareus <robin@gareus.org>
Mon, 21 Sep 2015 21:08:45 +0000 (23:08 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 21 Sep 2015 21:08:45 +0000 (23:08 +0200)
fixes debug output on windows. std::cerr is lost,
only std::cout, printf() and fprintf(stderr, ..) work.

libs/pbd/debug.cc

index 0c9119d002c0550e7d131e53959437820d7ff9ab..a914cfd87126082ae1d8a500d8ce5da3cb766b0b 100644 (file)
@@ -83,7 +83,7 @@ PBD::new_debug_bit (const char* name)
 void
 PBD::debug_print (const char* prefix, string str)
 {
-       cerr << prefix << ": " << str;
+       cout << prefix << ": " << str;
 }
 
 int
@@ -111,7 +111,7 @@ PBD::parse_debug_options (const char* str)
 
                         if (strncasecmp (cstr, i->first, strlen (cstr)) == 0) {
                                bits |= i->second;
-                               cerr << i->first << " set ... debug bits now set to " << bits << " using " << i->second << endl;
+                               cout << i->first << " set ... debug bits now set to " << bits << " using " << i->second << endl;
                         }
                 }
        }