diff options
Diffstat (limited to 'src/context/context_mm.cpp')
-rw-r--r-- | src/context/context_mm.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/context/context_mm.cpp b/src/context/context_mm.cpp index b0b015681..a202edf19 100644 --- a/src/context/context_mm.cpp +++ b/src/context/context_mm.cpp @@ -85,9 +85,11 @@ void* ContextMemoryManager::newData(size_t size) { AlwaysAssert(d_nextFree <= d_endChunk, "Request is bigger than memory chunk size"); } - Debug("context") << "ContextMemoryManager::newData(" << size - << ") returning " << res << " at level " - << d_chunkList.size() << std::endl; + if(debugTagIsOn("context")) { + Debug("context") << "ContextMemoryManager::newData(" << size + << ") returning " << res << " at level " + << d_chunkList.size() << std::endl; + } return res; } |