From: mquinson Date: Fri, 26 Nov 2010 14:11:22 +0000 (+0000) Subject: more clear paranoia message X-Git-Tag: v3_5~161 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9f68cdf0d68cc48c33c9a27d2e8f66c7dfde4755?hp=28f1fe6d24cd67e75bff01393f63724fdb2c45df more clear paranoia message git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8669 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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