Skip to content

Commit

Permalink
SCI: Fix broken LRU debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed Feb 18, 2016
1 parent 775c391 commit bb82350
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engines/sci/resource.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit bb82350

Please sign in to comment.