aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2015-03-22 16:52:16 -0500
committerEmil Velikov2015-04-05 09:33:33 -0500
commit37dc0a14cf899307863151bb6bd1cf4256e017e2 (patch)
treeb91b658c6ff31753f0b32d000166838ca310ad24 /xf86drmHash.c
parent03cd9dffef353924058b1b91086fedfbe44ffcd0 (diff)
downloadexternal-libdrm-37dc0a14cf899307863151bb6bd1cf4256e017e2.tar.gz
external-libdrm-37dc0a14cf899307863151bb6bd1cf4256e017e2.tar.xz
external-libdrm-37dc0a14cf899307863151bb6bd1cf4256e017e2.zip
drm: use correct printf modifiers
The valies are unsigned long, thus we should use %lu. v2: Drop old printf statement. (Jan) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
Diffstat (limited to 'xf86drmHash.c')
-rw-r--r--xf86drmHash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xf86drmHash.c b/xf86drmHash.c
index 199a2a3f..f287e61f 100644
--- a/xf86drmHash.c
+++ b/xf86drmHash.c
@@ -99,7 +99,7 @@ static unsigned long HashHash(unsigned long key)
99 99
100 hash %= HASH_SIZE; 100 hash %= HASH_SIZE;
101#if DEBUG 101#if DEBUG
102 printf( "Hash(%d) = %d\n", key, hash); 102 printf( "Hash(%lu) = %lu\n", key, hash);
103#endif 103#endif
104 return hash; 104 return hash;
105} 105}
@@ -202,7 +202,7 @@ int drmHashInsert(void *t, unsigned long key, void *value)
202 bucket->next = table->buckets[hash]; 202 bucket->next = table->buckets[hash];
203 table->buckets[hash] = bucket; 203 table->buckets[hash] = bucket;
204#if DEBUG 204#if DEBUG
205 printf("Inserted %d at %d/%p\n", key, hash, bucket); 205 printf("Inserted %lu at %lu/%p\n", key, hash, bucket);
206#endif 206#endif
207 return 0; /* Added to table */ 207 return 0; /* Added to table */
208} 208}