summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-10-03 20:05:44 +0000
committerzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-10-03 20:05:44 +0000
commite5a55b9c5b8550142c94e828d54fad210ed4e55c (patch)
tree5d66a5801743b06af1506e6b975449fa96c85da3
parent9a13dfbc7937765c772a67f949e1cfa3e7e594cc (diff)
downloadmpc-e5a55b9c5b8550142c94e828d54fad210ed4e55c.tar.gz
[tests/memory.c] more debug in tests_free()
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1097 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--tests/memory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/memory.c b/tests/memory.c
index 0dd2dfc..9ad93b5 100644
--- a/tests/memory.c
+++ b/tests/memory.c
@@ -172,6 +172,11 @@ tests_free (void *ptr, size_t size)
struct header **hp = tests_free_find (ptr);
struct header *h = *hp;
+#ifdef TEST_MEMORY
+ if (ptr == (void*) TEST_MEMORY)
+ fprintf (stderr, "tests_free: free %zu at 0x%lX\n",
+ size, (unsigned long) ptr);
+#endif
if (h->size != size)
{
/* Note: we should use the standard %zu to print sizes, but