From: Pekka Riikonen Date: Thu, 7 Dec 2006 17:03:04 +0000 (+0000) Subject: SILC_ASSERT added (debugging). X-Git-Tag: silc.client.1.1.beta1~133 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=88b30aa0a8625b2cdee0ea1e125dd0f205274ff0 SILC_ASSERT added (debugging). --- diff --git a/lib/silcapputil/silcidcache.c b/lib/silcapputil/silcidcache.c index 0c733276..c0824b2c 100644 --- a/lib/silcapputil/silcidcache.c +++ b/lib/silcapputil/silcidcache.c @@ -141,7 +141,9 @@ silc_idcache_add(SilcIDCache cache, char *name, void *id, void *context) if (id) { if (silc_idcache_find_by_id_one(cache, id, NULL)) { - SILC_LOG_ERROR(("Attempted to add same ID twice to ID Cache")); + SILC_LOG_ERROR(("Attempted to add same ID twice to ID Cache, id %s", + silc_id_render(id, cache->id_type))); + SILC_ASSERT(FALSE); goto err; } if (!silc_hash_table_add(cache->id_table, id, c))