diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-03-22 21:52:16 +0000 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-04-05 15:33:33 +0100 |
commit | 37dc0a14cf899307863151bb6bd1cf4256e017e2 (patch) | |
tree | b91b658c6ff31753f0b32d000166838ca310ad24 /xf86drmHash.c | |
parent | 03cd9dffef353924058b1b91086fedfbe44ffcd0 (diff) | |
download | libdrm-37dc0a14cf899307863151bb6bd1cf4256e017e2.tar.gz libdrm-37dc0a14cf899307863151bb6bd1cf4256e017e2.tar.bz2 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.c | 4 |
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) 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 */ } |