summaryrefslogtreecommitdiff
path: root/src/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.h')
-rw-r--r--src/cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cache.h b/src/cache.h
index 284c6da..ae12647 100644
--- a/src/cache.h
+++ b/src/cache.h
@@ -46,6 +46,7 @@
#define CACHE_H
#include <boost/unordered_map.hpp>
+#include "printutils.h"
template <class Key, class T>
class Cache
@@ -175,6 +176,9 @@ void Cache<Key,T>::trim(int m)
while (n && total > m) {
Node *u = n;
n = n->p;
+#ifdef DEBUG
+ PRINTF("Trimming cache: %p", u->t);
+#endif
unlink(*u);
}
}
contact: Jan Huwald // Impressum