From f5b3ad18cf33d7d32580ccc9b4fbc3a734da555f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 21 Sep 2015 23:08:45 +0200 Subject: [PATCH] PBD::Debug to stdout fixes debug output on windows. std::cerr is lost, only std::cout, printf() and fprintf(stderr, ..) work. --- libs/pbd/debug.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/pbd/debug.cc b/libs/pbd/debug.cc index 0c9119d002..a914cfd871 100644 --- a/libs/pbd/debug.cc +++ b/libs/pbd/debug.cc @@ -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; } } }