diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-16 02:25:13 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-16 02:25:13 +0000 |
commit | 2037b9534791377d5feecadea015d5a6927233be (patch) | |
tree | 487aca52415a70710c40c27b3e8c984c451da7c8 /libs/ardour/control_protocol_manager.cc | |
parent | 244f07b2a41220acd1d5c58f8bfe340161afb7cc (diff) |
a bit more debug tracing for control protocols
git-svn-id: svn://localhost/ardour2/branches/3.0@13849 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/control_protocol_manager.cc')
-rw-r--r-- | libs/ardour/control_protocol_manager.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/control_protocol_manager.cc b/libs/ardour/control_protocol_manager.cc index 0fd5319e40..2e65a8d6f8 100644 --- a/libs/ardour/control_protocol_manager.cc +++ b/libs/ardour/control_protocol_manager.cc @@ -128,11 +128,15 @@ ControlProtocolManager::instantiate (ControlProtocolInfo& cpi) cpi.descriptor = get_descriptor (cpi.path); + DEBUG_TRACE (DEBUG::ControlProtocols, string_compose ("instantiating %1\n", cpi.name)); + if (cpi.descriptor == 0) { error << string_compose (_("control protocol name \"%1\" has no descriptor"), cpi.name) << endmsg; return 0; } + DEBUG_TRACE (DEBUG::ControlProtocols, string_compose ("initializing %1\n", cpi.name)); + if ((cpi.protocol = cpi.descriptor->initialize (cpi.descriptor, _session)) == 0) { error << string_compose (_("control protocol name \"%1\" could not be initialized"), cpi.name) << endmsg; return 0; @@ -257,7 +261,7 @@ ControlProtocolManager::control_protocol_discover (string path) control_protocol_info.push_back (cpi); DEBUG_TRACE (DEBUG::ControlProtocols, - string_compose(_("Control surface protocol discovered: \"%1\""), cpi->name)); + string_compose(_("Control surface protocol discovered: \"%1\"\n"), cpi->name)); } dlclose (descriptor->module); |