diff options
author | Morgan Deters <mdeters@gmail.com> | 2010-06-02 23:18:54 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2010-06-02 23:18:54 +0000 |
commit | 3e1ab30ae6f4504b2a94224d5f0dfcfdf32aed6e (patch) | |
tree | 9d0cc1c59c5bbe9b806e6fd79d7680f1431a382a /src/context/context_mm.cpp | |
parent | 1163c334806c30ea54edadf0042690eeff8b278a (diff) |
added a handful of debugTagIsOn("context") checks to resolve bug 143
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; } |