Register: Add one new debugging message and tweak some others.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17893 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Charles Day 2009-02-11 22:11:30 +00:00
parent 4c09bec1f9
commit 1ea8e0f8bf

View File

@ -1458,7 +1458,7 @@ gnc_split_register_save (SplitRegister *reg, gboolean do_commit)
return TRUE; return TRUE;
} }
DEBUG ("save split is %p \n", split); DEBUG("save split=%p", split);
DEBUG("blank_split=%p, blank_trans=%p, pending_trans=%p, trans=%p", DEBUG("blank_split=%p, blank_trans=%p, pending_trans=%p, trans=%p",
blank_split, blank_trans, pending_trans, trans); blank_split, blank_trans, pending_trans, trans);
@ -1557,6 +1557,7 @@ gnc_split_register_save (SplitRegister *reg, gboolean do_commit)
gnc_table_set_virt_cell_data (reg->table, gnc_table_set_virt_cell_data (reg->table,
reg->table->current_cursor_loc.vcell_loc, reg->table->current_cursor_loc.vcell_loc,
xaccSplitGetGUID (split)); xaccSplitGetGUID (split));
DEBUG("assigned cell to new split=%p", split);
trans_split = gnc_split_register_get_current_trans_split (reg, NULL); trans_split = gnc_split_register_get_current_trans_split (reg, NULL);
if ((info->cursor_hint_trans == trans) && if ((info->cursor_hint_trans == trans) &&
@ -1568,7 +1569,7 @@ gnc_split_register_save (SplitRegister *reg, gboolean do_commit)
} }
} }
DEBUG ("updating trans addr=%p\n", trans); DEBUG("updating trans=%p", trans);
{ {
SRSaveData *sd; SRSaveData *sd;
@ -1585,7 +1586,7 @@ gnc_split_register_save (SplitRegister *reg, gboolean do_commit)
memo = memo ? memo : "(null)"; memo = memo ? memo : "(null)";
desc = xaccTransGetDescription (trans); desc = xaccTransGetDescription (trans);
desc = desc ? desc : "(null)"; desc = desc ? desc : "(null)";
PINFO ("finished saving split %s of trans %s \n", memo, desc); PINFO ("finished saving split \"%s\" of trans \"%s\"", memo, desc);
/* If the modified split is the "blank split", then it is now an /* If the modified split is the "blank split", then it is now an
* official part of the account. Set the blank split to NULL, so we * official part of the account. Set the blank split to NULL, so we