From 3791f4e86d2e669ce00a1dab58eecc62a21f0e45 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 1 Dec 2016 21:10:09 +0100 Subject: [PATCH] more informative assert message --- src/xbt/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xbt/lib.c b/src/xbt/lib.c index 6709ed4a90..068652e41a 100644 --- a/src/xbt/lib.c +++ b/src/xbt/lib.c @@ -45,7 +45,7 @@ void xbt_lib_free(xbt_lib_t *plib) int xbt_lib_add_level(xbt_lib_t lib, void_f_pvoid_t free_f) { XBT_DEBUG("xbt_lib_add_level"); - xbt_assert(xbt_dict_is_empty(lib->dict), "Lib is not empty, cannot add a level"); + xbt_assert(xbt_dict_is_empty(lib->dict), "Lib is not empty (size: %u), cannot add a level", xbt_dict_size(lib->dict)); lib->free_f = xbt_realloc(lib->free_f, sizeof(void_f_pvoid_t) * (lib->levels + 1)); lib->free_f[lib->levels] = free_f; return lib->levels++; -- 2.20.1