Fix compile warning.
[ardour.git] / libs / ardour / midi_ring_buffer.cc
index df49b570c72adb4a7f4b530d9c10855633a81ed8..2d5eedb6ebe8129bd464495750bac0d1df4921d4 100644 (file)
@@ -25,6 +25,7 @@
 
 using namespace std;
 using namespace ARDOUR;
+using namespace PBD;
 
 /** Read a block of MIDI events from buffer into a MidiBuffer.
  *
@@ -107,8 +108,10 @@ MidiRingBuffer<T>::read(MidiBuffer& dst, nframes_t start, nframes_t end, nframes
 #ifndef NDEBUG
                DEBUG_TRACE (DEBUG::MidiDiskstreamIO, "wrote MidiEvent to Buffer: ");
                for (size_t i=0; i < ev_size; ++i) {
-                       DEBUG_STR_SET(a, hex);
-                       DEBUG_STR(a) << "0x" << (int)write_loc[i] << ' ';
+                       DEBUG_STR_DECL(a);
+                       DEBUG_STR_APPEND(a,hex);
+                       DEBUG_STR_APPEND(a,"0x");
+                       DEBUG_STR_APPEND(a,(int)write_loc[i]);
                        DEBUG_TRACE (DEBUG::MidiDiskstreamIO, DEBUG_STR(a).str());
                }
                DEBUG_TRACE (DEBUG::MidiDiskstreamIO, "\n");