From: Wilfried Göesgens Date: Fri, 1 Feb 2008 10:07:13 +0000 (+0000) Subject: * remove debugging printfs X-Git-Tag: v7.86~2531 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=734531150fb9923025c6baf3b09eae9dbb2d22b8 * remove debugging printfs --- 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; }