From: Arnaud Giersch Date: Mon, 30 Oct 2017 22:25:34 +0000 (+0100) Subject: Don't return when debug is enabled. X-Git-Tag: v3.18~338 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/39a84606da478fb42f8988c27ddebb5f4f5633f0?hp=e9dbb466a7e527dc68e5293e0d696731e6fbd1c8 Don't return when debug is enabled. --- diff --git a/src/instr/instr_paje_trace.cpp b/src/instr/instr_paje_trace.cpp index c8a069aea9..9c094b68bc 100644 --- a/src/instr/instr_paje_trace.cpp +++ b/src/instr/instr_paje_trace.cpp @@ -76,7 +76,8 @@ void TRACE_paje_dump_buffer(bool force) void buffer_debug(std::vector* buf) { - return; + if (not XBT_LOG_ISENABLED(instr_paje_trace, xbt_log_priority_debug)) + return; XBT_DEBUG(">>>>>> Dump the state of the buffer. %zu events", buf->size()); for (auto const& event : *buf) { event->print();