From 3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 30 Apr 2007 08:24:37 +0000 Subject: Changed some of the logging macro names. --- src/utils.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/utils.cc') diff --git a/src/utils.cc b/src/utils.cc index 63c28c5c..afa0b7a8 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -77,10 +77,10 @@ void shutdown_memory_tracing() memory_tracing_active = false; if (live_objects) { - IF_DEBUG_("memory.counts") + IF_DEBUG("memory.counts") report_memory(std::cerr, true); else - IF_DEBUG_("memory.counts.live") + IF_DEBUG("memory.counts.live") report_memory(std::cerr); else if (live_objects->size() > 0) report_memory(std::cerr); @@ -253,7 +253,7 @@ void trace_ctor_func(void * ptr, const char * cls_name, const char * args, std::strcat(name, args); std::strcat(name, ")"); - DEBUG_("verify.memory", "TRACE_CTOR " << ptr << " " << name); + DEBUG("verify.memory", "TRACE_CTOR " << ptr << " " << name); live_objects->insert(live_objects_pair(ptr, allocation_pair(cls_name, cls_size))); @@ -271,7 +271,7 @@ void trace_dtor_func(void * ptr, const char * cls_name, std::size_t cls_size) if (! live_objects) return; - DEBUG_("ledger.trace.debug", "TRACE_DTOR " << ptr << " " << cls_name); + DEBUG("ledger.trace.debug", "TRACE_DTOR " << ptr << " " << cls_name); live_objects_map::iterator i = live_objects->find(ptr); VERIFY(i != live_objects->end()); @@ -494,8 +494,6 @@ bool logger_func(log_level_t level) #if defined(DEBUG_ON) -#include - namespace ledger { std::string _log_category; -- cgit v1.2.3