#include "xf86drmHash.h"
#define HASH_MAGIC 0xdeadbeef
-#define HASH_DEBUG 0
static unsigned long HashHash(unsigned long key)
{
}
hash %= HASH_SIZE;
-#if HASH_DEBUG
- printf( "Hash(%d) = %d\n", key, hash);
+#if DEBUG
+ printf( "Hash(%lu) = %lu\n", key, hash);
#endif
return hash;
}
bucket->value = value;
bucket->next = table->buckets[hash];
table->buckets[hash] = bucket;
-#if HASH_DEBUG
- printf("Inserted %d at %d/%p\n", key, hash, bucket);
+#if DEBUG
+ printf("Inserted %lu at %lu/%p\n", key, hash, bucket);
#endif
return 0; /* Added to table */
}