From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B958AA0597; Fri, 17 Apr 2020 23:58:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 495D01EB9D; Fri, 17 Apr 2020 23:58:10 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id B77BD1EB7D for ; Fri, 17 Apr 2020 23:58:03 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200417215803euoutp0292ed5d879e38be2363d237e938853f89~GujuIeNit0278302783euoutp02Y for ; Fri, 17 Apr 2020 21:58:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200417215803euoutp0292ed5d879e38be2363d237e938853f89~GujuIeNit0278302783euoutp02Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587160683; bh=O52/BYBAHuOLst0ZSPgN8ESWKq5i2ad6ldxZXceUlS8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FM3VUh/QQ/uElKBxItZD9Vxopa9u806B7LgPs/obS20kfTZBQEQqrXyHC5l+wjSwL PAto61VsawZRFA+WRVf2Bwv89iDk4zfxEiqfcLwVZDe/G+vNtIQlBh9EX+DsxBVNOH GWk3xVPx8xyaXgghSwtFhDdGcs/DbObbegCIZNKw= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200417215803eucas1p23619cf8ac5efa02e81efc641db506bcc~Gujt9Cr1M2677826778eucas1p2J; Fri, 17 Apr 2020 21:58:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 61.C4.60679.B662A9E5; Fri, 17 Apr 2020 22:58:03 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200417215802eucas1p27d4041768b717226b7161d0b896c3261~GujtWzbZF1656816568eucas1p2m; Fri, 17 Apr 2020 21:58:02 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200417215802eusmtrp1a891167c565623aa67298e2946850538~GujtWOMl20397603976eusmtrp1r; Fri, 17 Apr 2020 21:58:02 +0000 (GMT) X-AuditID: cbfec7f4-0e5ff7000001ed07-7a-5e9a266b6e7b Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id DF.52.07950.A662A9E5; Fri, 17 Apr 2020 22:58:02 +0100 (BST) Received: from localhost.localdomain (unknown [106.210.88.70]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200417215802eusmtip211a74dc29923cb806ce7ea1923c163fb~GujsyhHUa0325203252eusmtip2q; Fri, 17 Apr 2020 21:58:02 +0000 (GMT) From: Lukasz Wojciechowski To: Thomas Monjalon , Yipeng Wang , Sameh Gobriel , Bruce Richardson Cc: dev@dpdk.org Date: Fri, 17 Apr 2020 23:57:29 +0200 Message-Id: <20200417215739.23180-8-l.wojciechow@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200417215739.23180-1-l.wojciechow@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBIsWRmVeSWpSXmKPExsWy7djP87rZarPiDC4vFrG4scre4t2n7UwW 2/7/Z7T49OAEi8XZtv+sDqwevxYsZfVYvOclk8exm9PYA5ijuGxSUnMyy1KL9O0SuDK6Fuxl LjjGVdHT9Iq5gfEeRxcjJ4eEgInE21d/WbsYuTiEBFYwSlw69JEFwvnCKPF99kso5zOjxPWJ 39lgWi6u3MYIkVjOK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It4CRYRWjSGppcW56brGRXnFibnFpXrpe cn7uJkZgMG479nPLDsaud8GHGAU4GJV4eA16ZsYJsSaWFVfmHmKU4GBWEuE96AYU4k1JrKxK LcqPLyrNSS0+xGgKdNREZinR5HxgpOSVxBuaGppbWBqaG5sbm1koifN2CByMERJITyxJzU5N LUgtgulj4uCUamAs2WkSlnfGqml7w1T7yFiX7bGrhA3+cNyrMswof3zI4MrE6CntB9xm3pym 9v/VxNJW7aQL63cwCR8KCWu4NPNF7aVo3c5/bUHbd6y2tNuRselGCcfHGTvfr4yUWt/X9/nH 8V5dZcfV77yYTA41X+A565CUYzbnbOX64K0msQUaZmJyhzbPDPuvxFKckWioxVxUnAgAv8SX p1wCAAA= X-CMS-MailID: 20200417215802eucas1p27d4041768b717226b7161d0b896c3261 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200417215802eucas1p27d4041768b717226b7161d0b896c3261 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200417215802eucas1p27d4041768b717226b7161d0b896c3261 References: <20200417215739.23180-1-l.wojciechow@partner.samsung.com> Subject: [dpdk-dev] [PATCH v1 07/17] hash: replace library debug flag with global one X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Use global debug flag RTE_DEBUG instead of RTE_LIBRTE_HASH_DEBUG. The old define is completely removed from source code and config. Signed-off-by: Lukasz Wojciechowski --- config/common_base | 1 - lib/librte_hash/rte_cuckoo_hash.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/common_base b/config/common_base index ea5ccafc9..a12a869a9 100644 --- a/config/common_base +++ b/config/common_base @@ -877,7 +877,6 @@ CONFIG_RTE_LIBRTE_CMDLINE=y # Compile librte_hash # CONFIG_RTE_LIBRTE_HASH=y -CONFIG_RTE_LIBRTE_HASH_DEBUG=n # # Compile librte_efd diff --git a/lib/librte_hash/rte_cuckoo_hash.h b/lib/librte_hash/rte_cuckoo_hash.h index 345de6bf9..57ef74a47 100644 --- a/lib/librte_hash/rte_cuckoo_hash.h +++ b/lib/librte_hash/rte_cuckoo_hash.h @@ -20,7 +20,7 @@ #endif /* Macro to enable/disable run-time checking of function parameters */ -#if defined(RTE_LIBRTE_HASH_DEBUG) +#ifdef RTE_DEBUG #define RETURN_IF_TRUE(cond, retval) do { \ if (cond) \ return retval; \ @@ -29,7 +29,7 @@ #define RETURN_IF_TRUE(cond, retval) #endif -#if defined(RTE_LIBRTE_HASH_DEBUG) +#ifdef RTE_DEBUG #define ERR_IF_TRUE(cond, fmt, args...) do { \ if (cond) { \ RTE_LOG(ERR, HASH, fmt, ##args); \ -- 2.17.1