[Gnucash-changes] Balance ENTER/LEAVE debugging statements.

David Hampton hampton at cvs.gnucash.org
Tue Jul 19 14:20:13 EDT 2005


Log Message:
-----------
Balance ENTER/LEAVE debugging statements.

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash/src/engine:
        Account.c
        qof-be-utils.h

Revision Data
-------------
Index: Account.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/Account.c,v
retrieving revision 1.222.4.13
retrieving revision 1.222.4.14
diff -Lsrc/engine/Account.c -Lsrc/engine/Account.c -u -r1.222.4.13 -r1.222.4.14
--- src/engine/Account.c
+++ src/engine/Account.c
@@ -84,6 +84,7 @@
 static void
 xaccInitAccount (Account * acc, QofBook *book)
 {
+  ENTER ("book=%p\n", book);
   qof_instance_init (&acc->inst, GNC_ID_ACCOUNT, book);
 
   acc->parent   = NULL;
@@ -352,7 +353,7 @@
     xaccFreeAccountGroup (acc->children);
     acc->children = NULL;
 
-    PINFO ("freeing splits for account %p (%s)\n",
+    PINFO ("freeing splits for account %p (%s)",
            acc, acc->accountName ? acc->accountName : "(null)");
 
     while (acc->splits)
Index: qof-be-utils.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/qof-be-utils.h,v
retrieving revision 1.3.2.3
retrieving revision 1.3.2.4
diff -Lsrc/engine/qof-be-utils.h -Lsrc/engine/qof-be-utils.h -u -r1.3.2.3 -r1.3.2.4
--- src/engine/qof-be-utils.h
+++ src/engine/qof-be-utils.h
@@ -67,7 +67,8 @@
   } else {                                                          \
      /* We tried and failed to start transaction! */                \
      (inst)->dirty = TRUE;                                          \
-  }
+  }                                                                 \
+  LEAVE ("(inst=%p)", (inst));
 
 
 /**


More information about the gnucash-changes mailing list