diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-25 02:11:12 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-25 02:11:12 (GMT) |
commit | eff1f7f8c91cee34c584a89c5d09e401c609f93e (patch) | |
tree | 543ae3bd3587dd3a97fbaa660ad9aaceb5a3823f /src/CGALCache.cc | |
parent | 16c05eb533f94799a80f5b98c01e952e1cfe337b (diff) |
Ported printutils away from Qt
Diffstat (limited to 'src/CGALCache.cc')
-rw-r--r-- | src/CGALCache.cc | 10 |
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()); } |