summaryrefslogtreecommitdiff
path: root/libs/pbd/debug.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-09-21 23:08:45 +0200
committerRobin Gareus <robin@gareus.org>2015-09-21 23:08:45 +0200
commitf5b3ad18cf33d7d32580ccc9b4fbc3a734da555f (patch)
tree4e5841439ca075ca168be0e53cd0c8c5b9af9d69 /libs/pbd/debug.cc
parent621e9992a7cbe74c05627c01b86173948a54d14b (diff)
PBD::Debug to stdout
fixes debug output on windows. std::cerr is lost, only std::cout, printf() and fprintf(stderr, ..) work.
Diffstat (limited to 'libs/pbd/debug.cc')
-rw-r--r--libs/pbd/debug.cc4
1 files 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;
}
}
}