summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/realloc.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/realloc.c
parentb93d7f3e928c6dd153838dd88375ed39cd311a2a (diff)
Update debugging printfs.
Diffstat (limited to 'libc/stdlib/malloc/realloc.c')
-rw-r--r--libc/stdlib/malloc/realloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/malloc/realloc.c b/libc/stdlib/malloc/realloc.c
index 4372751d0..f19df8bde 100644
--- a/libc/stdlib/malloc/realloc.c
+++ b/libc/stdlib/malloc/realloc.c
@@ -73,7 +73,7 @@ realloc (void *mem, size_t new_size)
if (mem)
MALLOC_DEBUG (" realloc: returning 0x%lx"
" (base:0x%lx, total_size:%d)\n",
- (long)new_mem, (long)new_mem - sizeof(size_t), size);
+ (long)mem, (long)MALLOC_BASE(mem), (long)MALLOC_SIZE(mem));
return mem;
}