SILC_ASSERT added (debugging).
authorPekka Riikonen <priikone@silcnet.org>
Thu, 7 Dec 2006 17:03:04 +0000 (17:03 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 7 Dec 2006 17:03:04 +0000 (17:03 +0000)
lib/silcapputil/silcidcache.c

index 0c733276ddc4cd9d743d17920c3e0fe46627db05..c0824b2cd5a373bd759f47a92f812a2ba5f9abd8 100644 (file)
@@ -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))