mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 22:20:12 +01:00
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>
This commit is contained in:
parent
03cd9dffef
commit
37dc0a14cf
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue