From e6c5837b2ca85363b9dc5255592ca5e9da8900e1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 3 Jun 2010 17:57:09 -0400 Subject: Corrected a debug statement --- src/pool.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/pool.cc') 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(); -- cgit v1.2.3