From 734531150fb9923025c6baf3b09eae9dbb2d22b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Fri, 1 Feb 2008 10:07:13 +0000 Subject: [PATCH] * remove debugging printfs --- libcitadel/lib/hash.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libcitadel/lib/hash.c b/libcitadel/lib/hash.c index 884608a43..1c624e8f4 100644 --- a/libcitadel/lib/hash.c +++ b/libcitadel/lib/hash.c @@ -42,7 +42,9 @@ int PrintHash(HashList *Hash) free (Hash->MyKeys); Hash->MyKeys = (char**) malloc(sizeof(char*) * Hash->nMembersUsed); +#ifdef DEBUG printf("----------------------------------\n"); +#endif for (i=0; i < Hash->nMembersUsed; i++) { if (Hash->LookupTable[i] == NULL) @@ -57,9 +59,13 @@ int PrintHash(HashList *Hash) foo = Hash->LookupTable[i]->HashKey; bar = (char*) Hash->Members[Hash->LookupTable[i]->Position]->Data; } +#ifdef DEBUG printf (" ---- Hashkey[%ld][%ld]: '%s' Value: '%s' \n", i, key, foo, bar); +#endif } +#ifdef DEBUG printf("----------------------------------\n"); +#endif return 0; } -- 2.30.2