diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-03-07 17:22:58 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-03-04 02:54:10 +0100 |
commit | e9696710fd46af151364cb8626f62a7de194c8f2 (patch) | |
tree | 8c28fac86d78d767a6c22584ea40f552796c7130 /kjs/collector.cpp | |
parent | f29973ff64995727b9f5c0c43d65881d8af65f5e (diff) | |
download | tdelibs-e9696710fd46af151364cb8626f62a7de194c8f2.tar.gz tdelibs-e9696710fd46af151364cb8626f62a7de194c8f2.zip |
Add source code module name to stdout/stderr messages to improve readability.
(cherry picked from commit e15521d96b21cb0c771cce7cbe2ceb38f27c8844)
Diffstat (limited to 'kjs/collector.cpp')
-rw-r--r-- | kjs/collector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kjs/collector.cpp b/kjs/collector.cpp index b8d233850..2ddd635a6 100644 --- a/kjs/collector.cpp +++ b/kjs/collector.cpp @@ -163,7 +163,7 @@ bool Collector::collect() if (InterpreterImp::s_hook) { InterpreterImp *scr = InterpreterImp::s_hook; do { - //fprintf( stderr, "Collector marking interpreter %p\n",(void*)scr); + //fprintf( stderr, "[kjs-collector] Collector marking interpreter %p\n",(void*)scr); scr->mark(); scr = scr->next; } while (scr != InterpreterImp::s_hook); @@ -221,7 +221,7 @@ bool Collector::collect() if (!(imp->_flags & ValueImp::VI_DESTRUCTED)) { if (!imp->refcount && imp->_flags == (ValueImp::VI_GCALLOWED | ValueImp::VI_CREATED)) { - //fprintf( stderr, "Collector::deleting ValueImp %p (%s)\n", (void*)imp, typeid(*imp).name()); + //fprintf( stderr, "[kjs-collector] Collector::deleting ValueImp %p (%s)\n", (void*)imp, typeid(*imp).name()); // emulate destructing part of 'operator delete()' imp->~ValueImp(); curBlock->usedCells--; |