diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc index dfd9b29531..4904edc65a 100644 --- a/libs/ardour/session_vst.cc +++ b/libs/ardour/session_vst.cc @@ -22,6 +22,8 @@ #endif #include +#include "pbd/debug.h" + #include "ardour/audioengine.h" #include "ardour/session.h" #include "ardour/tempo.h" @@ -79,19 +81,11 @@ intptr_t Session::vst_callback ( if (effect && effect->user) { plug = (VSTPlugin *) (effect->user); session = &plug->session(); -#ifdef PLATFORM_WINDOWS - SHOW_CALLBACK ("am callback 0x%p, opcode = %d, plugin = \"%s\" ", pthread_self().p, opcode, plug->name()); -#else - SHOW_CALLBACK ("am callback 0x%x, opcode = %d, plugin = \"%s\" ", (int) pthread_self(), opcode, plug->name()); -#endif + SHOW_CALLBACK ("am callback 0x%p, opcode = %d, plugin = \"%s\" ", DEBUG_THREAD_SELF, opcode, plug->name()); } else { plug = 0; session = 0; -#ifdef PLATFORM_WINDOWS - SHOW_CALLBACK ("am callback 0x%p, opcode = %d", pthread_self().p, opcode); -#else - SHOW_CALLBACK ("am callback 0x%x, opcode = %d", (int) pthread_self(), opcode); -#endif + SHOW_CALLBACK ("am callback 0x%p, opcode = %d", DEBUG_THREAD_SELF, opcode); } switch(opcode){