13
0

MCP: more debug tracing

git-svn-id: svn://localhost/ardour2/branches/3.0@11863 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-04-10 14:45:21 +00:00
parent fb4816f010
commit 12357ec4bb
2 changed files with 6 additions and 10 deletions

View File

@ -306,6 +306,9 @@ Surface::connect_to_signals ()
{
if (!_connected) {
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("Surface %1 connecting to signals on port %2\n",
number(), _port->input_port().name()));
MIDI::Parser* p = _port->input_port().parser();
/* V-Pot messages are Controller */

View File

@ -126,16 +126,12 @@ void SurfacePort::write (const MidiByteArray & mba)
return;
}
#ifdef PORT_DEBUG
cout << "SurfacePort::write: " << mba << " to " << output_port().name() << endl;
#endif
// check active before and after lock - to make sure
// that the destructor doesn't destroy the mutex while
// it's still in use
if (!active()) return;
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("port %1 write %2\n", output_port().name(), mba));
int count = output_port().write (mba.bytes().get(), mba.size(), 0);
if (count != (int)mba.size()) {
if (errno == 0) {
cout << "port overflow on " << output_port().name() << ". Did not write all of " << mba << endl;
@ -148,9 +144,6 @@ void SurfacePort::write (const MidiByteArray & mba)
inactive_event();
}
}
#ifdef PORT_DEBUG
cout << "SurfacePort::wrote " << count << endl;
#endif
}