summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-10-29 22:07:18 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-11-02 16:32:18 -0600
commitcd2618246a01dbabafa8e48b5c68a4eda75b624b (patch)
tree7f6d84b1f1b65680a7744e4200d266fcd2417926
parent5e13770e1fd01245cc07af89b7441d5b06d16c87 (diff)
make it more likely that debug messages are printed without x-thread interruption
-rw-r--r--libs/pbd/debug.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/pbd/debug.cc b/libs/pbd/debug.cc
index c0c6ab65db..7fe7a1b90b 100644
--- a/libs/pbd/debug.cc
+++ b/libs/pbd/debug.cc
@@ -100,9 +100,10 @@ void
PBD::debug_print (const char* prefix, string str)
{
if ((PBD::debug_bits & DEBUG::DebugTimestamps).any()) {
- cout << g_get_monotonic_time() << ' ';
+ printf ("%ld %s: %s", g_get_monotonic_time(), prefix, str.c_str());
+ } else {
+ printf ("%s: %s", prefix, str.c_str());
}
- cout << prefix << ": " << str;
}
int