mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue