From 39a84606da478fb42f8988c27ddebb5f4f5633f0 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 30 Oct 2017 23:25:34 +0100 Subject: [PATCH 1/1] Don't return when debug is enabled. --- src/instr/instr_paje_trace.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.20.1