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 1F785A0597; Fri, 17 Apr 2020 23:59:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0B7921EBA4; Fri, 17 Apr 2020 23:58:12 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id A92BA1EB7C for ; Fri, 17 Apr 2020 23:58:03 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200417215803euoutp014a4994c99de4d014b260a32f0e2cfe3b~GujuCwj4b2759027590euoutp01g for ; Fri, 17 Apr 2020 21:58:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200417215803euoutp014a4994c99de4d014b260a32f0e2cfe3b~GujuCwj4b2759027590euoutp01g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587160683; bh=7rjoTk6aRUzh7KI3ruqgkcruHP2wkIqdapkknPlSQcE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nNCVBBQhO4gAcXvdYfCp/7O82F76ngx2KYkTRj7Wk18+kORdYijTY+s9NS/heZf0h 1HraGjqJQV8naG0ZaSh1ceNd53jX0CWlwndj4DD5EnkmfH9CVrSYfzSZ9Bs29GxfIS XzJ1UOynyTshlNTFPw2+XvYDqK+4dtzNr6HEfeFs= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200417215802eucas1p1d6d09d45fcd2deff2fb1e3340946874b~GujtCUKj81355713557eucas1p1o; Fri, 17 Apr 2020 21:58:02 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 2E.5E.60698.A662A9E5; Fri, 17 Apr 2020 22:58:02 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200417215801eucas1p25e56a60eda9b741ba26e686b90ed8e28~Gujso2B7O2688626886eucas1p2K; Fri, 17 Apr 2020 21:58:01 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200417215801eusmtrp2e7d36af0539f3eb4165465448ebff587~GujsoTzLl2952229522eusmtrp2h; Fri, 17 Apr 2020 21:58:01 +0000 (GMT) X-AuditID: cbfec7f5-a29ff7000001ed1a-b1-5e9a266a84ba Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7C.94.08375.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 20200417215801eusmtip2c16373d18c2c422565889af3611af894~GujsLncM70325203252eusmtip2p; Fri, 17 Apr 2020 21:58:01 +0000 (GMT) From: Lukasz Wojciechowski To: Thomas Monjalon , Olivier Matz Cc: dev@dpdk.org Date: Fri, 17 Apr 2020 23:57:28 +0200 Message-Id: <20200417215739.23180-7-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+NgFrrPIsWRmVeSWpSXmKPExsWy7djPc7pZarPiDCa3i1q8+7SdyWJr00Ym i08PTrA4MHtc7L/D6PFrwVJWj2M3p7EHMEdx2aSk5mSWpRbp2yVwZWyYd5i54IZAxclv85ga GBfxdTFyckgImEg0THrK2MXIxSEksIJRYtmJR+wgCSGBL4wSk9fYQiQ+M0qc3LOOBabjzI8f rBCJ5YwSnRtvsMNVXV48lxG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6yXn525iBIbdtmM/ N+9gvLQx+BCjAAejEg+vQc/MOCHWxLLiytxDjBIczEoivAfdgEK8KYmVValF+fFFpTmpxYcY TYGOmsgsJZqcD4yJvJJ4Q1NDcwtLQ3Njc2MzCyVx3g6BgzFCAumJJanZqakFqUUwfUwcnFIN jFJv3yTKmCY6bMt+xPctzrWhM4pv4/kvRw/VVbi2JC5+9HXawgpv7dPV5XOE+NeaTP3EekTj oOtkjqja5MC4zxFM2x+YvlsnY8wQv29StF+V4ZuLufZHmk7pzl256F3aqZYg+fumcW+du57O /Fe/p3u1Wdf/M42cEhxitWWPJ+xcIXjuxqm5VUosxRmJhlrMRcWJAEIjF41RAgAA X-CMS-MailID: 20200417215801eucas1p25e56a60eda9b741ba26e686b90ed8e28 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200417215801eucas1p25e56a60eda9b741ba26e686b90ed8e28 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200417215801eucas1p25e56a60eda9b741ba26e686b90ed8e28 References: <20200417215739.23180-1-l.wojciechow@partner.samsung.com> Subject: [dpdk-dev] [PATCH v1 06/17] cmdline: 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_CMDLINE_DEBUG. The old define is completely removed from source code and config. Signed-off-by: Lukasz Wojciechowski --- config/common_base | 1 - lib/librte_cmdline/cmdline_cirbuf.h | 2 +- lib/librte_cmdline/cmdline_parse.c | 2 +- lib/librte_cmdline/cmdline_parse_num.c | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config/common_base b/config/common_base index 09f54c460..ea5ccafc9 100644 --- a/config/common_base +++ b/config/common_base @@ -872,7 +872,6 @@ CONFIG_RTE_LIBRTE_CFGFILE=y # Compile librte_cmdline # CONFIG_RTE_LIBRTE_CMDLINE=y -CONFIG_RTE_LIBRTE_CMDLINE_DEBUG=n # # Compile librte_hash diff --git a/lib/librte_cmdline/cmdline_cirbuf.h b/lib/librte_cmdline/cmdline_cirbuf.h index c23b211ad..d11394985 100644 --- a/lib/librte_cmdline/cmdline_cirbuf.h +++ b/lib/librte_cmdline/cmdline_cirbuf.h @@ -24,7 +24,7 @@ struct cirbuf { char *buf; }; -#ifdef RTE_LIBRTE_CMDLINE_DEBUG +#ifdef RTE_DEBUG #define dprintf_(fmt, ...) printf("line %3.3d - " fmt "%.0s", __LINE__, __VA_ARGS__) #define dprintf(...) dprintf_(__VA_ARGS__, "dummy") #else diff --git a/lib/librte_cmdline/cmdline_parse.c b/lib/librte_cmdline/cmdline_parse.c index b57b30e8f..72bf543d9 100644 --- a/lib/librte_cmdline/cmdline_parse.c +++ b/lib/librte_cmdline/cmdline_parse.c @@ -20,7 +20,7 @@ #include "cmdline_parse.h" #include "cmdline.h" -#ifdef RTE_LIBRTE_CMDLINE_DEBUG +#ifdef RTE_DEBUG #define debug_printf printf #else #define debug_printf(args...) do {} while(0) diff --git a/lib/librte_cmdline/cmdline_parse_num.c b/lib/librte_cmdline/cmdline_parse_num.c index 478f181b4..ddcd14419 100644 --- a/lib/librte_cmdline/cmdline_parse_num.c +++ b/lib/librte_cmdline/cmdline_parse_num.c @@ -16,7 +16,7 @@ #include "cmdline_parse.h" #include "cmdline_parse_num.h" -#ifdef RTE_LIBRTE_CMDLINE_DEBUG +#ifdef RTE_DEBUG #define debug_printf(args...) printf(args) #else #define debug_printf(args...) do {} while(0) -- 2.17.1