From 3a9c6c389feadf1a264165be58a5761ab46656fe Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 14 Oct 2022 12:53:57 +0100 Subject: [PATCH] Improve debug messages Signed-off-by: falkTX --- source/backend/CarlaStandalone.cpp | 3 ++- source/backend/plugin/CarlaPluginLV2.cpp | 2 +- source/backend/plugin/CarlaPluginNative.cpp | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source/backend/CarlaStandalone.cpp b/source/backend/CarlaStandalone.cpp index d9151ff04..c6238b59f 100644 --- a/source/backend/CarlaStandalone.cpp +++ b/source/backend/CarlaStandalone.cpp @@ -1214,7 +1214,8 @@ uint32_t carla_get_current_plugin_count(CarlaHostHandle handle) { CARLA_SAFE_ASSERT_RETURN(handle->engine != nullptr, 0); - carla_debug("carla_get_current_plugin_count(%p)", handle); + // too noisy! + // carla_debug("carla_get_current_plugin_count(%p)", handle); return handle->engine->getCurrentPluginCount(); } diff --git a/source/backend/plugin/CarlaPluginLV2.cpp b/source/backend/plugin/CarlaPluginLV2.cpp index a3b25f127..2bdc5e3df 100644 --- a/source/backend/plugin/CarlaPluginLV2.cpp +++ b/source/backend/plugin/CarlaPluginLV2.cpp @@ -1587,7 +1587,7 @@ public: CARLA_SAFE_ASSERT_RETURN(type != nullptr && type[0] != '\0',); CARLA_SAFE_ASSERT_RETURN(key != nullptr && key[0] != '\0',); CARLA_SAFE_ASSERT_RETURN(value != nullptr,); - carla_debug("CarlaPluginLV2::setCustomData(%s, %s, %s, %s)", type, key, value, bool2str(sendGui)); + carla_debug("CarlaPluginLV2::setCustomData(\"%s\", \"%s\", \"%s\", %s)", type, key, value, bool2str(sendGui)); if (std::strcmp(type, CUSTOM_DATA_TYPE_PATH) == 0) { diff --git a/source/backend/plugin/CarlaPluginNative.cpp b/source/backend/plugin/CarlaPluginNative.cpp index ff797b329..ba10e7af5 100644 --- a/source/backend/plugin/CarlaPluginNative.cpp +++ b/source/backend/plugin/CarlaPluginNative.cpp @@ -789,7 +789,7 @@ public: CARLA_SAFE_ASSERT_RETURN(type != nullptr && type[0] != '\0',); CARLA_SAFE_ASSERT_RETURN(key != nullptr && key[0] != '\0',); CARLA_SAFE_ASSERT_RETURN(value != nullptr,); - carla_debug("CarlaPluginNative::setCustomData(%s, %s, ..., %s)", type, key, bool2str(sendGui)); + carla_debug("CarlaPluginNative::setCustomData(\"%s\", \"%s\", ..., %s)", type, key, bool2str(sendGui)); if (std::strcmp(type, CUSTOM_DATA_TYPE_PROPERTY) == 0) return CarlaPlugin::setCustomData(type, key, value, sendGui); @@ -801,7 +801,7 @@ public: } else if (std::strcmp(type, CUSTOM_DATA_TYPE_STRING) != 0 && std::strcmp(type, CUSTOM_DATA_TYPE_CHUNK) != 0) { - return carla_stderr2("CarlaPluginNative::setCustomData(\"%s\", \"%s\", \"%s\", %s) - type is invalid xa", + return carla_stderr2("CarlaPluginNative::setCustomData(\"%s\", \"%s\", \"%s\", %s) - type is invalid", type, key, value, bool2str(sendGui)); }