#ifdef around debug cout calls. Make sure -DDEBUG is passed to compiler.
[ardour.git] / libs / surfaces / mackie / surface_port.cc
index 5354e71df6b884efce0a54e629058a2e4c1a86ef..bba9ab240216a7d550b5506d88c6acaedb2520e8 100644 (file)
@@ -42,11 +42,15 @@ SurfacePort::SurfacePort( MIDI::Port & port, int number )
 
 SurfacePort::~SurfacePort()
 {
-       //cout << "~SurfacePort::SurfacePort()" << endl;
+#ifdef PORT_DEBUG
+       cout << "~SurfacePort::SurfacePort()" << endl;
+#endif
        // make sure another thread isn't reading or writing as we close the port
        Glib::RecMutex::Lock lock( _rwlock );
        _active = false;
-       //cout << "~SurfacePort::SurfacePort() finished" << endl;
+#ifdef PORT_DEBUG
+       cout << "~SurfacePort::SurfacePort() finished" << endl;
+#endif
 }
 
 // wrapper for one day when strerror_r is working properly
@@ -115,7 +119,6 @@ MidiByteArray SurfacePort::read()
 void SurfacePort::write( const MidiByteArray & mba )
 {
 #ifdef PORT_DEBUG
-       //if ( mba[0] == 0xf0 ) cout << "SurfacePort::write: " << mba << endl;
        cout << "SurfacePort::write: " << mba << endl;
 #endif