Skip to content

Commit

Permalink
Improve debug messages
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Oct 14, 2022
1 parent 7565014 commit 12d4d77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion source/backend/CarlaStandalone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion source/backend/plugin/CarlaPluginLV2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ class CarlaPluginLV2 : public CarlaPlugin,
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)
{
Expand Down
4 changes: 2 additions & 2 deletions source/backend/plugin/CarlaPluginNative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ class CarlaPluginNative : public CarlaPlugin
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);
Expand All @@ -801,7 +801,7 @@ class CarlaPluginNative : public CarlaPlugin
}
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));
}

Expand Down

0 comments on commit 12d4d77

Please sign in to comment.