summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/free.c
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-07-31 07:13:19 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2002-07-31 07:13:19 +0000
commitdfa6a5382af33ee7206891ac2ba7d7e44f1c479a (patch)
tree50e5b3e6e4d44ba0a38fad3e7314923c065e9555 /libc/stdlib/malloc/free.c
parentb93d7f3e928c6dd153838dd88375ed39cd311a2a (diff)
Update debugging printfs.
Diffstat (limited to 'libc/stdlib/malloc/free.c')
-rw-r--r--libc/stdlib/malloc/free.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdlib/malloc/free.c b/libc/stdlib/malloc/free.c
index 657604124..6908e16c1 100644
--- a/libc/stdlib/malloc/free.c
+++ b/libc/stdlib/malloc/free.c
@@ -32,7 +32,7 @@ free (void *mem)
mem = MALLOC_BASE (mem);
MALLOC_DEBUG ("free: 0x%lx (base = 0x%lx, total_size = %d)\n",
- (long)mem + MALLOC_ALIGNMENT, (long)mem, size);
+ (long)MALLOC_ADDR (mem), (long)mem, size);
__malloc_lock ();
@@ -68,7 +68,7 @@ free (void *mem)
reasonably cheap. */
if ((void *)end != sbrk (0))
{
- MALLOC_DEBUG (" not unmapping: 0x%lx - 0x%lx (%d bytes)\n",
+ MALLOC_DEBUG (" not unmapping: 0x%lx - 0x%lx (%ld bytes)\n",
start, end, end - start);
__malloc_unlock_sbrk ();
__malloc_unlock ();