From 478338854d451819582f595371727f8cc6621ba9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 27 Dec 2022 13:35:53 +0100 Subject: [PATCH] Improve peak-file debug output, print affected source-name --- libs/ardour/audiosource.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index 431aa84b07..004807ac85 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -663,7 +663,9 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, samplecnt_t npeaks, samplepos } if (zero_fill) { - cerr << "Zero fill end of peaks (@ " << read_npeaks << " with " << zero_fill << ")" << endl; +#ifndef NDEBUG + cerr << "Zero fill '" << _name << "' end of peaks (@ " << read_npeaks << " with " << zero_fill << ")" << endl; +#endif memset (&peak_cache[read_npeaks], 0, sizeof (PeakData) * zero_fill); }