X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=malloc.c;h=fe0b66dd70a6ace7f01144aa70280e0491813c9c;hb=e71c662575b0eacf7e7e6e47ee6a2e23313ee8e7;hp=0f668cdfcb75872d4f4ce5eeddb6a9ee73e11b35;hpb=3f270f98f93055407790f4fc65bd60980f2723b2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/malloc.c b/malloc.c index 0f668cd..fe0b66d 100644 --- a/malloc.c +++ b/malloc.c @@ -351,7 +351,7 @@ # undef DEBUG_m # define DEBUG_m(a) \ STMT_START { \ - if (PERL_GET_INTERP) { dTHX; if (PL_debug & 128) { a; } } \ + if (PERL_GET_INTERP) { dTHX; if (DEBUG_m_TEST) { a; } } \ } STMT_END #endif @@ -1096,7 +1096,7 @@ Perl_malloc(register size_t nbytes) DEBUG_m(PerlIO_printf(Perl_debug_log, "0x%"UVxf": (%05lu) malloc %ld bytes\n", - PTR2UV(p+1), (unsigned long)(PL_an++), + PTR2UV(p), (unsigned long)(PL_an++), (long)size)); /* remove from linked list */