a bit more debug tracing for control protocols
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 16 Jan 2013 02:25:13 +0000 (02:25 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 16 Jan 2013 02:25:13 +0000 (02:25 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13849 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/control_protocol_manager.cc

index 0fd5319e40baf7f9b010f75a91195921a916a3c4..2e65a8d6f89241e6f68ad37fff60bdf7ba467bb8 100644 (file)
@@ -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);