From patchwork Sun Mar 22 22:03:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6067831 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C11E59F2A9 for ; Sun, 22 Mar 2015 22:00:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F05F12024D for ; Sun, 22 Mar 2015 22:00:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 01B1A20220 for ; Sun, 22 Mar 2015 22:00:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 48FFD6E3E1; Sun, 22 Mar 2015 15:00:50 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C7CB6E3CE for ; Sun, 22 Mar 2015 15:00:49 -0700 (PDT) Received: by wibgn9 with SMTP id gn9so43921734wib.1 for ; Sun, 22 Mar 2015 15:00:48 -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=1VRIZiDwTEcceX0Ku4Kwmp8dUl+za6PNsxbz+E8xRHk=; b=O8DtUWPHRMljq7B25GUJEtv9QdjFgtPvtNlWg7xkD2XnvxoNL+aZNBBF/RjWvt5+3k SwhsZhKVF9D6ELE5e0t85UBPl89kTSySQ5/igW8lA2ZOlIY9i9HwT/OIhm7mEYokDNQj FdsBrnksmH96tU5EFRqambSNdtE2vMfOzaX/ut+naCfF5g09i8exwDqAMDu/z18NH6IU kVvCE9RJcMbkxHTVa5MiTosADg0Ov8+51mrrdX6fgxqRvDy8DYq4LO796YTXdPv9vkUR KaTS4PAyKptvWWmbIHNtE7DrEfJtVPikRTAKqW7cBVumwkiaJxa++3INACUEcEuaEX1P W6CA== X-Received: by 10.180.206.101 with SMTP id ln5mr14505177wic.55.1427061648704; Sun, 22 Mar 2015 15:00:48 -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 dq8sm8281654wib.9.2015.03.22.15.00.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Mar 2015 15:00:48 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 8/9] drm: replace HASH_DEBUG with DEBUG Date: Sun, 22 Mar 2015 22:03:44 +0000 Message-Id: <1427061825-27470-9-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1427061825-27470-1-git-send-email-emil.l.velikov@gmail.com> References: <1427061825-27470-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 Signed-off-by: Emil Velikov Reviewed-by: Jan Vesely --- 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 82512a8..12baa62 100644 --- a/xf86drmHash.c +++ b/xf86drmHash.c @@ -74,7 +74,6 @@ #include "xf86drm.h" #define HASH_MAGIC 0xdeadbeef -#define HASH_DEBUG 0 #define HASH_SIZE 512 /* Good for about 100 entries */ /* If you change this value, you probably have to change the HashHash hashing @@ -119,7 +118,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; @@ -222,7 +221,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 39f3c52..2177d27 100644 --- a/xf86drmRandom.c +++ b/xf86drmRandom.c @@ -77,7 +77,6 @@ #include "xf86drm.h" #define RANDOM_MAGIC 0xfeedbeef -#define RANDOM_DEBUG 0 typedef struct RandomState { unsigned long magic; 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