From a9c449c4af7f735cf38591ea0387fa1724ae5bb7 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Thu, 12 Mar 2015 21:56:00 +1000 Subject: [PATCH] Use DEBUG_THREAD_SELF macro in session_vst.cc --- libs/ardour/session_vst.cc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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){