* remove debugging printfs
authorWilfried Göesgens <willi@citadel.org>
Fri, 1 Feb 2008 10:07:13 +0000 (10:07 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 1 Feb 2008 10:07:13 +0000 (10:07 +0000)
libcitadel/lib/hash.c

index 884608a43b2bf3a644573e37b72b8c60f50ea0df..1c624e8f48d8b6ca781aec5d64d15991c0c21c6b 100644 (file)
@@ -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;
 }