From 9f68cdf0d68cc48c33c9a27d2e8f66c7dfde4755 Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 26 Nov 2010 14:11:22 +0000 Subject: [PATCH 1/1] more clear paranoia message git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8669 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_network.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index b84c935f77..2c958a6aef 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -171,10 +171,8 @@ void SIMIX_communication_destroy(smx_comm_t comm) VERB2("Destroy communication %p; refcount initially %d", comm, comm->refcount); - if(!(comm->refcount>0)) { - INFO1("There is no more reference to this comm (%p). Cannot destroy!",comm); - xbt_die("Argh.!"); - } + if(!(comm->refcount>0)) + xbt_die(bprintf("the refcount of comm %p is already 0 before decreasing it. That's a bug!",comm)); #ifdef HAVE_LATENCY_BOUND_TRACKING //save is latency limited flag to use afterwards -- 2.20.1