summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-03-26 21:19:26 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2015-04-05 15:33:33 +0100
commit03cd9dffef353924058b1b91086fedfbe44ffcd0 (patch)
tree4ac7e96e790659c7ce97ca3dc9469cf680997121
parent1ed5faab24da62d970aa34ec242fa2d95896e5fb (diff)
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>
-rw-r--r--xf86drmHash.c5
-rw-r--r--xf86drmRandom.c1
-rw-r--r--xf86drmSL.c1
3 files changed, 2 insertions, 5 deletions
diff --git a/xf86drmHash.c b/xf86drmHash.c
index f7d7f73b..199a2a3f 100644
--- a/xf86drmHash.c
+++ b/xf86drmHash.c
@@ -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 */
diff --git a/xf86drmRandom.c b/xf86drmRandom.c
index b3a4be94..81f03014 100644
--- a/xf86drmRandom.c
+++ b/xf86drmRandom.c
@@ -78,7 +78,6 @@
#include "xf86drmRandom.h"
#define RANDOM_MAGIC 0xfeedbeef
-#define RANDOM_DEBUG 0
void *drmRandomCreate(unsigned long seed)
{
diff --git a/xf86drmSL.c b/xf86drmSL.c
index bb9ca7f1..a12fa1d0 100644
--- a/xf86drmSL.c
+++ b/xf86drmSL.c
@@ -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