From 42bbfaf7f713e21b5e48a484ac3a96247e27b799 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 15 Oct 2020 08:54:36 +0200 Subject: [PATCH] mmalloc: cosmetics in an error message --- src/xbt/mmalloc/mrealloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xbt/mmalloc/mrealloc.c b/src/xbt/mmalloc/mrealloc.c index b30db05985..9e9a877d07 100644 --- a/src/xbt/mmalloc/mrealloc.c +++ b/src/xbt/mmalloc/mrealloc.c @@ -36,8 +36,8 @@ void *mrealloc(xbt_mheap_t mdp, void *ptr, size_t size) } if ((char *) ptr < (char *) mdp->heapbase || BLOCK(ptr) > mdp->heapsize) { - printf("FIXME. Ouch, this pointer is not mine, refusing to proceed (another solution would be to malloc " - "it instead of reallocing it, see source code)\n"); + // Don't trust xbt_assert and friends in malloc-level library, you fool! + fprintf(stderr, "This pointer is not mine, refusing to realloc it (maybe you wanted to malloc it instead?)\n"); abort(); } -- 2.20.1