Browse Source

Improve debug messages

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.2^0
falkTX 2 years ago
parent
commit
12d4d77b3c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 5 additions and 4 deletions
  1. +2
    -1
      source/backend/CarlaStandalone.cpp
  2. +1
    -1
      source/backend/plugin/CarlaPluginLV2.cpp
  3. +2
    -2
      source/backend/plugin/CarlaPluginNative.cpp

+ 2
- 1
source/backend/CarlaStandalone.cpp View File

@@ -1203,7 +1203,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();
}


+ 1
- 1
source/backend/plugin/CarlaPluginLV2.cpp View File

@@ -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)
{


+ 2
- 2
source/backend/plugin/CarlaPluginNative.cpp View File

@@ -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));
}



Loading…
Cancel
Save