summaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-30 08:24:37 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:34 -0400
commit3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba (patch)
treedc04c7feaeab4ce255f4f74d47325f4efb9f8314 /src/utils.cc
parent83fc097062c3380091556c6a4b703d28821d5464 (diff)
downloadfork-ledger-3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba.tar.gz
fork-ledger-3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba.tar.bz2
fork-ledger-3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba.zip
Changed some of the logging macro names.
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc10
1 files changed, 4 insertions, 6 deletions
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 <boost/regex.hpp>
-
namespace ledger {
std::string _log_category;