13
0

libpbd: tweak for printing pthread ID (windows is int/*nix is ptr)

This commit is contained in:
Paul Davis 2023-08-31 08:55:09 -06:00
parent b5b4be96e3
commit 4969fb9e0b

View File

@ -104,7 +104,7 @@ void
PBD::debug_only_print (const char* prefix, string str)
{
if ((PBD::debug_bits & DEBUG::Threads).any()) {
printf ("0x%x (%s) ", (int) DEBUG_THREAD_SELF, pthread_name());
printf ("0x%lx (%s) ", (intptr_t) DEBUG_THREAD_SELF, pthread_name());
}
if ((PBD::debug_bits & DEBUG::DebugTimestamps).any()) {