summaryrefslogtreecommitdiff
path: root/src/CGALCache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CGALCache.cc')
-rw-r--r--src/CGALCache.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CGALCache.cc b/src/CGALCache.cc
index 8a92082..1fc864a 100644
--- a/src/CGALCache.cc
+++ b/src/CGALCache.cc
@@ -12,7 +12,7 @@ const CGAL_Nef_polyhedron &CGALCache::get(const std::string &id) const
{
const CGAL_Nef_polyhedron &N = *this->cache[id];
#ifdef DEBUG
- PRINTF("CGAL Cache hit: %s (%d bytes)", id.substr(0, 40).c_str(), N.weight());
+ PRINTB("CGAL Cache hit: %s (%d bytes)", id.substr(0, 40) % N.weight());
#endif
return N;
}
@@ -21,8 +21,8 @@ bool CGALCache::insert(const std::string &id, const CGAL_Nef_polyhedron &N)
{
bool inserted = this->cache.insert(id, new CGAL_Nef_polyhedron(N), N.weight());
#ifdef DEBUG
- if (inserted) PRINTF("CGAL Cache insert: %s (%d bytes)", id.substr(0, 40).c_str(), N.weight());
- else PRINTF("CGAL Cache insert failed: %s (%d bytes)", id.substr(0, 40).c_str(), N.weight());
+ if (inserted) PRINTB("CGAL Cache insert: %s (%d bytes)", id.substr(0, 40) % N.weight());
+ else PRINTB("CGAL Cache insert failed: %s (%d bytes)", id.substr(0, 40) % N.weight());
#endif
return inserted;
}
@@ -44,6 +44,6 @@ void CGALCache::clear()
void CGALCache::print()
{
- PRINTF("CGAL Polyhedrons in cache: %d", this->cache.size());
- PRINTF("CGAL cache size in bytes: %d", this->cache.totalCost());
+ PRINTB("CGAL Polyhedrons in cache: %d", this->cache.size());
+ PRINTB("CGAL cache size in bytes: %d", this->cache.totalCost());
}
contact: Jan Huwald // Impressum