13
0

PBD::Debug to stdout

fixes debug output on windows. std::cerr is lost,
only std::cout, printf() and fprintf(stderr, ..) work.
This commit is contained in:
Robin Gareus 2015-09-21 23:08:45 +02:00
parent 621e9992a7
commit f5b3ad18cf

View 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;
}
}
}