* malloc_wrapper.cc: Throughout fix format specifiers in malloc_printf.

This commit is contained in:
Corinna Vinschen 2013-04-23 09:08:21 +00:00
parent 440ee329b8
commit f7679463c6
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2013-04-23 Corinna Vinschen <corinna@vinschen.de>
* malloc_wrapper.cc: Throughout fix format specifiers in malloc_printf.
2013-04-23 Corinna Vinschen <corinna@vinschen.de>
* Remove ptmalloc3 once and for all.

View File

@ -61,7 +61,7 @@ malloc (size_t size)
res = dlmalloc (size);
__malloc_unlock ();
}
malloc_printf ("(%d) = %x, called by %p", size, res, __builtin_return_address (0));
malloc_printf ("(%ld) = %p, called by %p", size, res, __builtin_return_address (0));
return res;
}
@ -77,7 +77,7 @@ realloc (void *p, size_t size)
res = dlrealloc (p, size);
__malloc_unlock ();
}
malloc_printf ("(%x, %d) = %x, called by %x", p, size, res, __builtin_return_address (0));
malloc_printf ("(%p, %ld) = %p, called by %p", p, size, res, __builtin_return_address (0));
return res;
}
@ -104,7 +104,7 @@ calloc (size_t nmemb, size_t size)
res = dlcalloc (nmemb, size);
__malloc_unlock ();
}
malloc_printf ("(%d, %d) = %x, called by %x", nmemb, size, res, __builtin_return_address (0));
malloc_printf ("(%ld, %ld) = %p, called by %p", nmemb, size, res, __builtin_return_address (0));
return res;
}