diff --git a/src/H5ChunkedWriter.cpp b/src/H5ChunkedWriter.cpp index 94cfa8c..e635291 100644 --- a/src/H5ChunkedWriter.cpp +++ b/src/H5ChunkedWriter.cpp @@ -14,7 +14,7 @@ hsize_t expand_dataset(const H5::DataSet& dataset, hsize_t frame_index, hsize_t dataset_dimension[0] = frame_index + dataset_increase_step; #ifdef DEBUG - std::cout << "Expanding dataspace to size ("; + std::cout << "[H5ChunkedWriter] Expanding dataspace to size ("; for (hsize_t i=0; iwrite_index = 0; @@ -55,7 +55,7 @@ void RingBuffer::write(FrameMetadata &metadata, char* data) metadata.buffer_slot_index = write_index; #ifdef DEBUG - std::cout << "Ring buffer slot " << metadata.buffer_slot_index << " reserved for frame_index " << metadata.frame_index << std::endl; + std::cout << "[RingBuffer] Ring buffer slot " << metadata.buffer_slot_index << " reserved for frame_index " << metadata.frame_index << std::endl; #endif // Increase and wrap the write index around if needed. @@ -75,7 +75,7 @@ void RingBuffer::write(FrameMetadata &metadata, char* data) std::memcpy(slot_memory_address, data, metadata.frame_bytes_size); #ifdef DEBUG - std::cout << "Copied " << metadata.frame_bytes_size << " frame bytes to buffer_slot_index " << metadata.buffer_slot_index << std::endl; + std::cout << "[RingBuffer] Copied " << metadata.frame_bytes_size << " frame bytes to buffer_slot_index " << metadata.buffer_slot_index << std::endl; #endif frame_metadata_queue_mutex.lock(); @@ -86,7 +86,7 @@ void RingBuffer::write(FrameMetadata &metadata, char* data) frame_metadata_queue_mutex.unlock(); #ifdef DEBUG - std::cout << "Metadata for frame_index " << metadata.frame_index << " added to metadata queue." << std::endl; + std::cout << "[RingBuffer] Metadata for frame_index " << metadata.frame_index << " added to metadata queue." << std::endl; #endif } @@ -102,7 +102,7 @@ char* RingBuffer::get_buffer_slot_address(size_t buffer_slot_index) { } #ifdef DEBUG - std::cout << "For buffer_slot_index " << buffer_slot_index << " the calculated memory address is " << long(slot_memory_address) << std::endl; + std::cout << "[RingBuffer] For buffer_slot_index " << buffer_slot_index << " the calculated memory address is " << long(slot_memory_address) << std::endl; #endif return slot_memory_address; @@ -127,7 +127,7 @@ std::pair RingBuffer::read() frame_metadata_queue_mutex.unlock(); #ifdef DEBUG - std::cout << "Received metadata for frame_index " << frame_metadata.frame_index << std::endl; + std::cout << "[RingBuffer] Received metadata for frame_index " << frame_metadata.frame_index << std::endl; #endif }