Unify debugging categories
Debugging categories follow the filename, which in this case is singular (rather than plural) "account" and "amount".
This commit is contained in:
parent
1c6e7f410b
commit
746ca1fe6d
3 changed files with 10 additions and 10 deletions
|
|
@ -301,7 +301,7 @@ void amount_t::_copy(const amount_t& amt)
|
|||
quantity = new bigint_t(*amt.quantity);
|
||||
} else {
|
||||
quantity = amt.quantity;
|
||||
DEBUG("amounts.refs",
|
||||
DEBUG("amount.refs",
|
||||
quantity << " refc++, now " << (quantity->refc + 1));
|
||||
quantity->refc++;
|
||||
}
|
||||
|
|
@ -339,7 +339,7 @@ void amount_t::_release()
|
|||
{
|
||||
VERIFY(valid());
|
||||
|
||||
DEBUG("amounts.refs", quantity << " refc--, now " << (quantity->refc - 1));
|
||||
DEBUG("amount.refs", quantity << " refc--, now " << (quantity->refc - 1));
|
||||
|
||||
if (--quantity->refc == 0) {
|
||||
if (quantity->has_flags(BIGINT_BULK_ALLOC))
|
||||
|
|
@ -928,7 +928,7 @@ void amount_t::annotate(const annotation_t& details)
|
|||
}
|
||||
assert(this_base);
|
||||
|
||||
DEBUG("amounts.commodities", "Annotating commodity for amount "
|
||||
DEBUG("amount.commodities", "Annotating commodity for amount "
|
||||
<< *this << std::endl << details);
|
||||
|
||||
if (commodity_t * ann_comm =
|
||||
|
|
@ -939,7 +939,7 @@ void amount_t::annotate(const annotation_t& details)
|
|||
assert(false);
|
||||
#endif
|
||||
|
||||
DEBUG("amounts.commodities", "Annotated amount is " << *this);
|
||||
DEBUG("amount.commodities", "Annotated amount is " << *this);
|
||||
}
|
||||
|
||||
bool amount_t::has_annotation() const
|
||||
|
|
|
|||
|
|
@ -187,8 +187,8 @@ void annotation_t::parse(std::istream& in)
|
|||
} while (true);
|
||||
|
||||
#if DEBUG_ON
|
||||
if (SHOW_DEBUG("amounts.commodities") && *this) {
|
||||
DEBUG("amounts.commodities",
|
||||
if (SHOW_DEBUG("amount.commodities") && *this) {
|
||||
DEBUG("amount.commodities",
|
||||
"Parsed commodity annotations: " << std::endl << *this);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -204,9 +204,9 @@ void sorted_accounts_iterator::push_back(account_t& account)
|
|||
compare_items<account_t>(sort_cmp));
|
||||
|
||||
#if DEBUG_ON
|
||||
if (SHOW_DEBUG("accounts.sorted")) {
|
||||
if (SHOW_DEBUG("account.sorted")) {
|
||||
foreach (account_t * acct, accounts_list.back())
|
||||
DEBUG("accounts.sorted",
|
||||
DEBUG("account.sorted",
|
||||
"Account (flat): " << acct->fullname());
|
||||
}
|
||||
#endif
|
||||
|
|
@ -237,9 +237,9 @@ void sorted_accounts_iterator::sort_accounts(account_t& account,
|
|||
compare_items<account_t>(sort_cmp));
|
||||
|
||||
#if DEBUG_ON
|
||||
if (SHOW_DEBUG("accounts.sorted")) {
|
||||
if (SHOW_DEBUG("account.sorted")) {
|
||||
foreach (account_t * acct, deque)
|
||||
DEBUG("accounts.sorted", "Account: " << acct->fullname());
|
||||
DEBUG("account.sorted", "Account: " << acct->fullname());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue