diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-10-29 22:07:18 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-11-02 16:32:18 -0600 |
commit | cd2618246a01dbabafa8e48b5c68a4eda75b624b (patch) | |
tree | 7f6d84b1f1b65680a7744e4200d266fcd2417926 /libs/pbd/debug.cc | |
parent | 5e13770e1fd01245cc07af89b7441d5b06d16c87 (diff) |
make it more likely that debug messages are printed without x-thread interruption
Diffstat (limited to 'libs/pbd/debug.cc')
-rw-r--r-- | libs/pbd/debug.cc | 5 |
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 |