diff --git a/source/backend/engine/CarlaEngineInternal.cpp b/source/backend/engine/CarlaEngineInternal.cpp index 05979eb26..2c247fac7 100644 --- a/source/backend/engine/CarlaEngineInternal.cpp +++ b/source/backend/engine/CarlaEngineInternal.cpp @@ -782,7 +782,8 @@ ScopedActionLock::ScopedActionLock(CarlaEngine* const engine, #ifndef CARLA_OS_WASM #if defined(DEBUG) || defined(BUILD_BRIDGE) // block wait for unlock on processing side - carla_stdout(ACTION_MSG_PREFIX "ScopedPluginAction(%i) - blocking START", pluginId); + carla_stdout(ACTION_MSG_PREFIX "ScopedPluginAction(%i|%i:%s) - blocking START", + pluginId, action, EnginePostAction2Str(action)); #endif if (! pData->nextAction.postDone) @@ -808,7 +809,8 @@ ScopedActionLock::ScopedActionLock(CarlaEngine* const engine, } #if defined(DEBUG) || defined(BUILD_BRIDGE) - carla_stdout(ACTION_MSG_PREFIX "ScopedPluginAction(%i) - blocking DONE", pluginId); + carla_stdout(ACTION_MSG_PREFIX "ScopedPluginAction(%i|%i:%s) - blocking DONE", + pluginId, action, EnginePostAction2Str(action)); #endif #endif diff --git a/source/backend/engine/CarlaEngineInternal.hpp b/source/backend/engine/CarlaEngineInternal.hpp index 40d723d1d..69568db06 100644 --- a/source/backend/engine/CarlaEngineInternal.hpp +++ b/source/backend/engine/CarlaEngineInternal.hpp @@ -203,6 +203,27 @@ enum EnginePostAction { #endif }; +static inline +const char* EnginePostAction2Str(const EnginePostAction action) +{ + switch (action) + { + case kEnginePostActionNull: + return "kEnginePostActionNull"; + case kEnginePostActionZeroCount: + return "kEnginePostActionZeroCount"; +#ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH + case kEnginePostActionRemovePlugin: + return "kEnginePostActionRemovePlugin"; + case kEnginePostActionSwitchPlugins: + return "kEnginePostActionSwitchPlugins"; +#endif + } + + carla_stderr("CarlaBackend::EnginePostAction2Str(%i) - invalid action", action); + return nullptr; +} + struct EngineNextAction { EnginePostAction opcode; uint pluginId;