Report the requested size in CRYPTO_malloc and CRYPTO_free
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
diff --git a/preload.c b/preload.c
index 41caa65..534fe89 100644
--- a/preload.c
+++ b/preload.c
@@ -327,7 +327,7 @@
void *ret = NULL;
if (size < SEG_SIZE)
ret = dlmalloc(size);
- INFO("in crypto malloc from %s:%d size=%x ret=%p\n", file, line, size, ret);
+ INFO("in crypto malloc from %s:%d %zu@%p\n", file, line, size, ret);
show_segment();
return ret;
}
@@ -336,7 +336,7 @@
{
struct malloc_chunk *c, *n;
- INFO("in crypto free from %s:%d; ptr=%p\n", file, line, ptr);
+ INFO("in crypto free from %s:%d: %p\n", file, line, ptr);
if (ptr == NULL)
return;