From 70b34d05fa58f44827926f92e75f0ac4c1dc552f Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Thu, 31 May 2001 16:42:12 +0000 Subject: [PATCH] print additional info in the debugging routine PrintQuery() git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4341 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/Query.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/engine/Query.c b/src/engine/Query.c index aa609b4ea3..044ac085ca 100644 --- a/src/engine/Query.c +++ b/src/engine/Query.c @@ -130,11 +130,21 @@ xaccQueryPrint(Query * q) qt = (QueryTerm *)j->data; switch (qt->data.base.term_type) { - case PR_ACCOUNT: + case PR_ACCOUNT: { + GList *p; + char buff[40]; printf ("account sense=%d how=%d\n", qt->data.base.sense, qt->data.acct.how); + for (p=qt->data.acct.account_guids; p; p=p->next) { + guid_to_string_buff (p->data, buff); + printf ("\tguid=%s\n", buff); + } + for (p=qt->data.acct.accounts; p; p=p->next) { + printf ("\tacct ptr=%p\n", p->data); + } break; + } case PR_ACTION: printf ("action\n"); break;