From: mquinson Date: Tue, 28 Jun 2005 10:26:15 +0000 (+0000) Subject: Got the last little bugs; more useful loggings X-Git-Tag: v3.3~3901 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f2d009281d1e6d92065c4a080742cdee99577931?ds=sidebyside Got the last little bugs; more useful loggings git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1454 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/dict_multi.c b/src/xbt/dict_multi.c index ddcb5ba063..56147de22c 100644 --- a/src/xbt/dict_multi.c +++ b/src/xbt/dict_multi.c @@ -12,8 +12,8 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(dict_multi,dict, "Dictionaries of multiple keys"); static void _free_dict(void*d) { - xbt_dict_t dict=*(xbt_dict_t*)d; - xbt_dict_free(&dict); + VERB1("free dict %p",d); + xbt_dict_free((xbt_dict_t*)&d); } /** \brief Insert \e data under all the keys contained in \e keys, providing their sizes in \e lens. @@ -60,7 +60,8 @@ xbt_multidict_set_ext(xbt_dict_t mdict, /* make sure the dict of next level exists */ if (errcode == mismatch_error) { nextlevel=xbt_dict_new(); - xbt_dict_set_ext(thislevel, thiskey, thislen, &nextlevel, _free_dict); + VERB1("Create a dict (%p)",nextlevel); + xbt_dict_set_ext(thislevel, thiskey, thislen, nextlevel, &_free_dict); } } @@ -133,7 +134,8 @@ xbt_multidict_get_ext(xbt_dict_t mdict, xbt_dynar_get_cpy(keys, i, &thiskey); xbt_dynar_get_cpy(lens, i, &thislen); - DEBUG5("multi_get: at level %d, len=%ld, key=%p |%*s|", i, thislen, thiskey, (int)thislen,thiskey); + DEBUG6("multi_get: at level %d (%p), len=%ld, key=%p |%*s|", + i, thislevel, thislen, thiskey, (int)thislen,thiskey); /* search the dict of next level: let mismatch raise if not found */ TRY(xbt_dict_get_ext(thislevel, thiskey, thislen, (void*)&nextlevel));