diff options
Diffstat (limited to 'src/cache.h')
-rw-r--r-- | src/cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cache.h b/src/cache.h index ae12647..27eb1f9 100644 --- a/src/cache.h +++ b/src/cache.h @@ -46,6 +46,7 @@ #define CACHE_H #include <boost/unordered_map.hpp> +#include <boost/format.hpp> #include "printutils.h" template <class Key, class T> @@ -177,7 +178,7 @@ void Cache<Key,T>::trim(int m) Node *u = n; n = n->p; #ifdef DEBUG - PRINTF("Trimming cache: %p", u->t); + PRINTF("Trimming cache: %s (%d bytes)", str(boost::format("%1%") % *u->keyPtr).c_str(), u->c); #endif unlink(*u); } |