diff --git a/libs/pbd/debug.cc b/libs/pbd/debug.cc index cc691221a4..1d01dd022c 100644 --- a/libs/pbd/debug.cc +++ b/libs/pbd/debug.cc @@ -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()) {