summaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-26 05:30:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-26 05:30:48 -0400
commitbadea0058402837961125bd000ced2a132591cbf (patch)
tree4873746732a154c152a99bdda968c626526ff5e0 /src/utils.cc
parent87ec7bc34a78ae67101514d6507b90fe691e0010 (diff)
downloadfork-ledger-badea0058402837961125bd000ced2a132591cbf.tar.gz
fork-ledger-badea0058402837961125bd000ced2a132591cbf.tar.bz2
fork-ledger-badea0058402837961125bd000ced2a132591cbf.zip
Added a warning_() macro
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/utils.cc b/src/utils.cc
index 70c6d5f8..0e208b45 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -300,8 +300,7 @@ void trace_dtor_func(void * ptr, const char * cls_name, std::size_t cls_size)
live_objects_map::iterator i = live_objects->find(ptr);
if (i == live_objects->end()) {
- std::cerr << "Attempting to delete " << ptr << " a non-living " << cls_name
- << std::endl;
+ warning_(_("Attempting to delete %1 a non-living %2") << ptr << cls_name);
memory_tracing_active = true;
return;
}
@@ -316,8 +315,7 @@ void trace_dtor_func(void * ptr, const char * cls_name, std::size_t cls_size)
object_count_map::iterator k = live_object_count->find(cls_name);
if (k == live_object_count->end()) {
- std::cerr << "Failed to find " << cls_name << " in live object counts"
- << std::endl;
+ warning_(_("Failed to find %1 in live object counts") << cls_name);
memory_tracing_active = true;
return;
}