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:
parent
621e9992a7
commit
f5b3ad18cf
@ -83,7 +83,7 @@ PBD::new_debug_bit (const char* name)
|
|||||||
void
|
void
|
||||||
PBD::debug_print (const char* prefix, string str)
|
PBD::debug_print (const char* prefix, string str)
|
||||||
{
|
{
|
||||||
cerr << prefix << ": " << str;
|
cout << prefix << ": " << str;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -111,7 +111,7 @@ PBD::parse_debug_options (const char* str)
|
|||||||
|
|
||||||
if (strncasecmp (cstr, i->first, strlen (cstr)) == 0) {
|
if (strncasecmp (cstr, i->first, strlen (cstr)) == 0) {
|
||||||
bits |= i->second;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user