From patchwork Thu Mar 26 23:57:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6102801 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5BF08BF911 for ; Thu, 26 Mar 2015 23:54:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F02F2044C for ; Thu, 26 Mar 2015 23:54:12 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 8C20920450 for ; Thu, 26 Mar 2015 23:54:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 364067A006; Thu, 26 Mar 2015 16:54:09 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by gabe.freedesktop.org (Postfix) with ESMTP id 4FF137A005 for ; Thu, 26 Mar 2015 16:54:07 -0700 (PDT) Received: by wgra20 with SMTP id a20so81670403wgr.3 for ; Thu, 26 Mar 2015 16:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WcpKdna0VWyTAFq7uTkxTIRt+0w6pV+CXlJk3wBG7NA=; b=pvPtcjZz3nwGKSWcY8aUdmteGfae1RvmoWJmfLje+O03IYd+m5qSvT8hTk16l0vrI0 Ac4nluv/lhkD0rYKjYZm2tdj7hitJk+KzaHOrKQAHfGP/G+CJn/lZL4rK80OmCi5Os24 ++eD9bRTSA+IHpXUpszTfZaltdUqHI6yMp3GGqVzXwwN1rMLkEnY+6JT/3j5FfRNw/tM WwqxsWNQ8jgZUqGbE/iMS57wOZWATCBn3OjlRSEPdSMqVL2JgAP4dTp4VD4k2slWVB0u O4ZejLYCFVWDkxx4VSqkbzT43A9HAYMakQbA55eOoAqE4PkmzKvdOLy37ULPoYSaJ79N Kh8A== X-Received: by 10.180.20.144 with SMTP id n16mr50864191wie.44.1427414046704; Thu, 26 Mar 2015 16:54:06 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id ey10sm1060338wib.2.2015.03.26.16.54.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Mar 2015 16:54:06 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm v2 7/8] drm: replace HASH_DEBUG with DEBUG Date: Thu, 26 Mar 2015 23:57:10 +0000 Message-Id: <1427414231-11385-7-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1427414231-11385-1-git-send-email-emil.l.velikov@gmail.com> References: <1427414231-11385-1-git-send-email-emil.l.velikov@gmail.com> Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ... and remove the useless SL_DEBUG and RANDOM_DEBUG v2: Rebase on earlier changes. Signed-off-by: Emil Velikov --- xf86drmHash.c | 5 ++--- xf86drmRandom.c | 1 - xf86drmSL.c | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/xf86drmHash.c b/xf86drmHash.c index f7d7f73..199a2a3 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 b3a4be9..81f0301 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 acddb54..9bbf8fb 100644 --- a/xf86drmSL.c +++ b/xf86drmSL.c @@ -53,7 +53,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 #if SL_MAIN