From 029ef88059faec6fdb3f6957bb865445d3d1a527 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 21 May 2022 16:32:19 -0600 Subject: [PATCH] temporal: wrap some calls to TempoMap::dump() in appropriate DEBUG stuff --- libs/temporal/tempo.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index aca4b9c138..f336e060c7 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -893,7 +893,11 @@ TempoMap::set_tempo (Tempo const & t, timepos_t const & time) } - dump (cerr); +#ifndef NDEBUG + if (DEBUG_ENABLED (DEBUG::TemporalMap)) { + dump (cerr); + } +#endif return *ret; } @@ -1876,7 +1880,11 @@ TempoMap::get_grid (TempoMapPoints& ret, superclock_t start, superclock_t end, u assert (!_meters.empty()); assert (!_points.empty()); - dump (std::cout); +#ifndef NDEBUG + if (DEBUG_ENABLED (DEBUG::Grid)) { + dump (std::cout); + } +#endif DEBUG_TRACE (DEBUG::Grid, string_compose (">>> GRID START %1 .. %2 (barmod = %3)\n", start, end, bar_mod)); TempoPoint const * tp = 0;