From e5d95d0d063d7d128b6b3b6bf52aa3a027dceebd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 23 Oct 2025 17:40:58 -0600 Subject: [PATCH] improve 2 DEBUG_TRACE messages associated with peakfile operations --- libs/ardour/audiosource.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index fb91a80661..aceb0d7036 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -1127,7 +1127,7 @@ AudioSource::compute_and_write_peaks (Sample const * buf, samplecnt_t first_samp off_t target_length = blocksize * ((first_peak_byte + blocksize + 1) / blocksize); if (endpos < target_length) { - DEBUG_TRACE(DEBUG::Peaks, string_compose ("Truncating Peakfile %1\n", _peakpath)); + DEBUG_TRACE(DEBUG::Peaks, string_compose ("Truncating Peakfile A %1 to %2\n", _peakpath, target_length)); if (ftruncate (_peakfile_fd, target_length)) { /* error doesn't actually matter so continue on without testing */ } @@ -1178,7 +1178,7 @@ AudioSource::truncate_peakfile () off_t end = lseek (_peakfile_fd, 0, SEEK_END); if (end > _peak_byte_max) { - DEBUG_TRACE(DEBUG::Peaks, string_compose ("Truncating Peakfile %1\n", _peakpath)); + DEBUG_TRACE(DEBUG::Peaks, string_compose ("Truncating Peakfile B %1 to %2\n", _peakpath, _peak_byte_max)); if (ftruncate (_peakfile_fd, _peak_byte_max)) { error << string_compose (_("could not truncate peakfile %1 to %2 (error: %3)"), _peakpath, _peak_byte_max, errno) << endmsg;