OSDN Git Service

configure: request/set the compiler in C99 mode
[android-x86/external-libdrm.git] / xf86drmHash.c
index 199a2a3..f287e61 100644 (file)
@@ -99,7 +99,7 @@ static unsigned long HashHash(unsigned long key)
 
     hash %= HASH_SIZE;
 #if DEBUG
-    printf( "Hash(%d) = %d\n", key, hash);
+    printf( "Hash(%lu) = %lu\n", key, hash);
 #endif
     return hash;
 }
@@ -202,7 +202,7 @@ int drmHashInsert(void *t, unsigned long key, void *value)
     bucket->next         = table->buckets[hash];
     table->buckets[hash] = bucket;
 #if DEBUG
-    printf("Inserted %d at %d/%p\n", key, hash, bucket);
+    printf("Inserted %lu at %lu/%p\n", key, hash, bucket);
 #endif
     return 0;                  /* Added to table */
 }