Qualify logging as verbose

This commit is contained in:
Justin Ethier 2016-03-02 21:25:05 -05:00
parent 64e0255d69
commit 6376a0eb2c
2 changed files with 2 additions and 2 deletions

2
gc.c
View file

@ -559,7 +559,7 @@ size_t gc_sweep(gc_heap *h, size_t *sum_freed_ptr)
if ((char *)r == (char *)p) { // this is a free block, skip it
p = (object) (((char *)p) + r->size);
#if GC_DEBUG_TRACE
#if GC_DEBUG_VERBOSE
fprintf(stderr, "skip free block %p size = %zu\n", p, r->size);
#endif
continue;

View file

@ -2227,7 +2227,7 @@ void gc_mark_globals()
cvar_type *c = (cvar_type *)car(l);
object glo = *(c->pvar);
if (!nullp(glo)) {
#if GC_DEBUG_TRACE
#if GC_DEBUG_VERBOSE
fprintf(stderr, "global pvar %p\n", glo);
#endif
gc_mark_black(glo); // Mark actual object the global points to