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 9F2D4A0597; Fri, 17 Apr 2020 23:58:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C78B01EB94; Fri, 17 Apr 2020 23:58:08 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id F3F571EB73 for ; Fri, 17 Apr 2020 23:58:02 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200417215802euoutp02fc1ef39b66bf159897da30cba80c7c86~Gujtb1l_d0662106621euoutp02C for ; Fri, 17 Apr 2020 21:58:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200417215802euoutp02fc1ef39b66bf159897da30cba80c7c86~Gujtb1l_d0662106621euoutp02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587160682; bh=koyQOeBYFT8VW1boLYwNoiaNdNnpJgTEmbKeU4FpfQ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oorveYiN4CZ8Sxw+Y/JMqu/BDgTr2Q8HcWS7jM5pIxysoBSlGb+hopr5CFLNF2sGa Ndb7KqMXZi01rPAcpHq1aKPgcgB1SKWVnt/ggawxaFpWp1hrFx/b5RUgT4hVFZgTea T4nfPb1POZtyElSRZmOwJ9t04eN5vK76qjXBbYlI= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200417215802eucas1p15b2db5deffbdaa9168790fb4411de86a~GujtBfBrK0153301533eucas1p1A; Fri, 17 Apr 2020 21:58:02 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 21.C4.60679.A662A9E5; Fri, 17 Apr 2020 22:58:02 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200417215801eucas1p28aefc04e119aa5de16a7f0771bb0e268~GujsACQFK2665726657eucas1p2H; Fri, 17 Apr 2020 21:58:01 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200417215801eusmtrp19897cd86f899f8fb984f7a661561c200~Gujr8xUSu0397603976eusmtrp1q; Fri, 17 Apr 2020 21:58:01 +0000 (GMT) X-AuditID: cbfec7f4-0e5ff7000001ed07-78-5e9a266a1059 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9F.52.07950.9662A9E5; Fri, 17 Apr 2020 22:58:01 +0100 (BST) Received: from localhost.localdomain (unknown [106.210.88.70]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200417215800eusmtip283fc313455f1c4780cf73534474d1528~GujrnUJTb0325203252eusmtip2o; Fri, 17 Apr 2020 21:58:00 +0000 (GMT) From: Lukasz Wojciechowski To: Thomas Monjalon , Vladimir Medvedkin Cc: dev@dpdk.org Date: Fri, 17 Apr 2020 23:57:27 +0200 Message-Id: <20200417215739.23180-6-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+NgFrrLIsWRmVeSWpSXmKPExsWy7djPc7pZarPiDGZ3iFq8+7SdyeLTgxMs Fk+vejowe/xasJTVY/Gel0wex25OYw9gjuKySUnNySxLLdK3S+DK6H71gblgDk/Fx0W72RsY J3J1MXJySAiYSMxfPpGti5GLQ0hgBaPE8Sf3mCCcL4wS16f0sEM4nxklVt5dBZThAGtZfSIY Ir6cUeLk7DlscEVPb7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bfYSK84Mbe4NC9dLzk/dxMjMOi2Hfu5ZQdj 17vgQ4wCHIxKPLwGPTPjhFgTy4orcw8xSnAwK4nwHnQDCvGmJFZWpRblxxeV5qQWH2I0BTpq IrOUaHI+MCLySuINTQ3NLSwNzY3Njc0slMR5OwQOxggJpCeWpGanphakFsH0MXFwSjUwylmk Gn74Nm/bM5617009/pXGfikIeRLQPMnr7NSZned6Zkkfrij+4S1aP716Z/J7qUuH2WZNOD7H 6OOx6yrrvkZcWBQjZ7/s7OQl5+43bchijSq46Xz909PcYz5hbxzTi37djz16SsO6UsR+xu29 OWEsokddjgWar3nYr7BLitMh+ehVsQt9MUosxRmJhlrMRcWJANcinG5QAgAA X-CMS-MailID: 20200417215801eucas1p28aefc04e119aa5de16a7f0771bb0e268 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200417215801eucas1p28aefc04e119aa5de16a7f0771bb0e268 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200417215801eucas1p28aefc04e119aa5de16a7f0771bb0e268 References: <20200417215739.23180-1-l.wojciechow@partner.samsung.com> Subject: [dpdk-dev] [PATCH v1 05/17] fib: 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_FIB_DEBUG. The old define is completely removed from source code and config. Signed-off-by: Lukasz Wojciechowski --- config/common_base | 1 - lib/librte_fib/rte_fib.c | 2 +- lib/librte_fib/rte_fib6.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/common_base b/config/common_base index 96d5031d9..09f54c460 100644 --- a/config/common_base +++ b/config/common_base @@ -930,7 +930,6 @@ CONFIG_RTE_LIBRTE_RIB=y # Compile librte_fib # CONFIG_RTE_LIBRTE_FIB=y -CONFIG_RTE_LIBRTE_FIB_DEBUG=n # # Compile librte_lpm diff --git a/lib/librte_fib/rte_fib.c b/lib/librte_fib/rte_fib.c index e0908084f..52a64f726 100644 --- a/lib/librte_fib/rte_fib.c +++ b/lib/librte_fib/rte_fib.c @@ -28,7 +28,7 @@ EAL_REGISTER_TAILQ(rte_fib_tailq) /* Maximum length of a FIB name. */ #define RTE_FIB_NAMESIZE 64 -#if defined(RTE_LIBRTE_FIB_DEBUG) +#ifdef RTE_DEBUG #define FIB_RETURN_IF_TRUE(cond, retval) do { \ if (cond) \ return retval; \ diff --git a/lib/librte_fib/rte_fib6.c b/lib/librte_fib/rte_fib6.c index a1f0db844..bd9b990cf 100644 --- a/lib/librte_fib/rte_fib6.c +++ b/lib/librte_fib/rte_fib6.c @@ -28,7 +28,7 @@ EAL_REGISTER_TAILQ(rte_fib6_tailq) /* Maximum length of a FIB name. */ #define FIB6_NAMESIZE 64 -#if defined(RTE_LIBRTE_FIB_DEBUG) +#ifdef RTE_DEBUG #define FIB6_RETURN_IF_TRUE(cond, retval) do { \ if (cond) \ return retval; \ -- 2.17.1