summaryrefslogtreecommitdiff
path: root/src/pool.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-03 17:57:09 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-03 17:57:09 -0400
commite6c5837b2ca85363b9dc5255592ca5e9da8900e1 (patch)
tree4a70401b116cae4d603d7891a3f39818eecd1b9d /src/pool.cc
parent27b86a5388a9b1a5d5c748fa7e6f8aa4a2f1a3f4 (diff)
downloadfork-ledger-e6c5837b2ca85363b9dc5255592ca5e9da8900e1.tar.gz
fork-ledger-e6c5837b2ca85363b9dc5255592ca5e9da8900e1.tar.bz2
fork-ledger-e6c5837b2ca85363b9dc5255592ca5e9da8900e1.zip
Corrected a debug statement
Diffstat (limited to 'src/pool.cc')
-rw-r--r--src/pool.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pool.cc b/src/pool.cc
index 8d9f0c28..6b422351 100644
--- a/src/pool.cc
+++ b/src/pool.cc
@@ -122,8 +122,11 @@ string commodity_pool_t::make_qualified_name(const commodity_t& comm,
comm.print(name);
details.print(name, comm.pool().keep_base);
- DEBUG("amounts.commodities", "make_qualified_name for "
- << *comm.qualified_symbol << std::endl << details);
+#if defined(DEBUG_ON)
+ if (comm.qualified_symbol)
+ DEBUG("amounts.commodities", "make_qualified_name for "
+ << *comm.qualified_symbol << std::endl << details);
+#endif
DEBUG("amounts.commodities", "qualified_name is " << name.str());
return name.str();