Revision: 54867
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54867&view=rev
Author:   brlcad
Date:     2013-03-26 02:16:56 +0000 (Tue, 26 Mar 2013)
Log Message:
-----------
make the debug printing conditional on bu_debug being set to something

Modified Paths:
--------------
    brlcad/trunk/src/libbu/heap.c

Modified: brlcad/trunk/src/libbu/heap.c
===================================================================
--- brlcad/trunk/src/libbu/heap.c       2013-03-26 01:40:38 UTC (rev 54866)
+++ brlcad/trunk/src/libbu/heap.c       2013-03-26 02:16:56 UTC (rev 54867)
@@ -130,7 +130,8 @@
 
     if (sz > BINS || sz == 0) {
        misses++;
-       bu_log("missed size %zd\n", sz);
+       if (bu_debug)
+           bu_log("DEBUG: heap size %zd out of range\n", sz);
        return bu_calloc(1, sz, "heap calloc");
     }
 
@@ -139,7 +140,7 @@
     /* init */
     if (!pages[smo]) {
 
-       if (printit==0) {
+       if (bu_debug && printit==0) {
            atexit(bu_heap_print);
            printit++;
        }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to