diff options
author | Colin Snover | 2016-02-17 18:35:01 -0600 |
---|---|---|
committer | Colin Snover | 2016-02-18 13:18:02 -0600 |
commit | bb8235063087f5e760b900c32aece5fec614598f (patch) | |
tree | 12ba71269fec48240c1d699c0321856af4324b7c /engines/sci | |
parent | 775c39102a8999e7ea62313ce00b4b3f51780fc7 (diff) | |
download | scummvm-rg350-bb8235063087f5e760b900c32aece5fec614598f.tar.gz scummvm-rg350-bb8235063087f5e760b900c32aece5fec614598f.tar.bz2 scummvm-rg350-bb8235063087f5e760b900c32aece5fec614598f.zip |
SCI: Fix broken LRU debugging
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/resource.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index f35781231b..92d35ba1fc 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -998,9 +998,9 @@ void ResourceManager::addToLRU(Resource *res) { _LRU.push_front(res); _memoryLRU += res->size; #if SCI_VERBOSE_RESMAN - debug("Adding %s.%03d (%d bytes) to lru control: %d bytes total", - getResourceTypeName(res->type), res->number, res->size, - mgr->_memoryLRU); + debug("Adding %s (%d bytes) to lru control: %d bytes total", + res->_id.toString().c_str(), res->size, + _memoryLRU); #endif res->_status = kResStatusEnqueued; } @@ -1029,7 +1029,7 @@ void ResourceManager::freeOldResources() { removeFromLRU(goner); goner->unalloc(); #ifdef SCI_VERBOSE_RESMAN - debug("resMan-debug: LRU: Freeing %s.%03d (%d bytes)", getResourceTypeName(goner->type), goner->number, goner->size); + debug("resMan-debug: LRU: Freeing %s (%d bytes)", goner->_id.toString().c_str(), goner->size); #endif } } |