OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Export drmDevicesEqual
[android-x86/external-libdrm.git]
/
xf86drmHash.c
diff --git
a/xf86drmHash.c
b/xf86drmHash.c
index
f7d7f73
..
f287e61
100644
(file)
--- a/
xf86drmHash.c
+++ b/
xf86drmHash.c
@@
-75,7
+75,6
@@
#include "xf86drmHash.h"
#define HASH_MAGIC 0xdeadbeef
#include "xf86drmHash.h"
#define HASH_MAGIC 0xdeadbeef
-#define HASH_DEBUG 0
static unsigned long HashHash(unsigned long key)
{
static unsigned long HashHash(unsigned long key)
{
@@
-99,8
+98,8
@@
static unsigned long HashHash(unsigned long key)
}
hash %= HASH_SIZE;
}
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;
}
#endif
return hash;
}
@@
-202,8
+201,8
@@
int drmHashInsert(void *t, unsigned long key, void *value)
bucket->value = value;
bucket->next = table->buckets[hash];
table->buckets[hash] = bucket;
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 */
}
#endif
return 0; /* Added to table */
}