drm: replace HASH_DEBUG with DEBUG

... and remove the useless SL_DEBUG and RANDOM_DEBUG

v2: Rebase on earlier changes.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
main
Emil Velikov 2015-03-26 21:19:26 +00:00
parent 1ed5faab24
commit 03cd9dffef
3 changed files with 2 additions and 5 deletions

View File

@ -75,7 +75,6 @@
#include "xf86drmHash.h"
#define HASH_MAGIC 0xdeadbeef
#define HASH_DEBUG 0
static unsigned long HashHash(unsigned long key)
{
@ -99,7 +98,7 @@ static unsigned long HashHash(unsigned long key)
}
hash %= HASH_SIZE;
#if HASH_DEBUG
#if DEBUG
printf( "Hash(%d) = %d\n", key, hash);
#endif
return hash;
@ -202,7 +201,7 @@ int drmHashInsert(void *t, unsigned long key, void *value)
bucket->value = value;
bucket->next = table->buckets[hash];
table->buckets[hash] = bucket;
#if HASH_DEBUG
#if DEBUG
printf("Inserted %d at %d/%p\n", key, hash, bucket);
#endif
return 0; /* Added to table */

View File

@ -78,7 +78,6 @@
#include "xf86drmRandom.h"
#define RANDOM_MAGIC 0xfeedbeef
#define RANDOM_DEBUG 0
void *drmRandomCreate(unsigned long seed)
{

View File

@ -47,7 +47,6 @@
#define SL_ENTRY_MAGIC 0x00fab1edLU
#define SL_FREED_MAGIC 0xdecea5edLU
#define SL_MAX_LEVEL 16
#define SL_DEBUG 0
#define SL_RANDOM_SEED 0xc01055a1LU
#define SL_RANDOM_DECL static void *state = NULL