From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0066.outbound.protection.outlook.com [104.47.36.66]) by dpdk.org (Postfix) with ESMTP id 17D841B2A3 for ; Thu, 16 Nov 2017 11:33:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VPDWu/SvrrJfvdYPAcSINe2OFA/hFwr/b8Az4k7Gag8=; b=aPciS1369ZwMEER98COYNgpYS1550UAczMm9rWY7q6bvEj2+06HPftRtAlKArhdeo1Y8HT0qRTASsPjhdoPzFwWSsIs+d2yuKZp93Fe1AgTpXnJGealg5aB/oL4jgLRtxxLxVzOQIcx9GkpqQ6Rm41eGITkbqQVX29GPgK5AiKg= Received: from localhost.localdomain (103.16.71.47) by CY4PR07MB3463.namprd07.prod.outlook.com (10.171.252.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.239.5; Thu, 16 Nov 2017 10:33:35 +0000 From: Pavan Nikhilesh To: olivier.matz@6wind.com, thomas@monjalon.net Cc: dev@dpdk.org, Pavan Nikhilesh Date: Thu, 16 Nov 2017 16:01:43 +0530 Message-Id: <20171116103144.4197-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [103.16.71.47] X-ClientProxiedBy: SG2PR01CA0087.apcprd01.prod.exchangelabs.com (10.170.138.141) To CY4PR07MB3463.namprd07.prod.outlook.com (10.171.252.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 58374b82-8924-446b-97ca-08d52cdd7ee1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258); SRVR:CY4PR07MB3463; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3463; 3:SnRH65oKSTumP1V+ZsDHCXT4QtRH+oGXAP86x52h/kl/rj7cglstJ8saoT3qmYJJCnab5f+WFM1wTaBMhZ0fZ7PzI22PFA5l/LOJXJuMoWQXXiMpek5/q1X3vg9PZ28G1q1koAIRaW0xglv3wf7r62MCjX7STfTbeLLYn908SzY33wx15oXK02KPHmkEBOLs9C+BYVrXCr2tKjCAR2RoYg2S9xvWAUN/YuJdCWqX0E1FaWBVNxrSqz5/rcGbaHaK; 25:jjYJ5pmIJKsW7nXAW885HOlbIAn3AZHnqpdwttXRCQZq+r1+rKfAolnAe2P4hAOXM3Y+QspjsmNDUn0GwIYlOwHUw/sHe+ysQZcB22C48WwLnSDnxV/40qlb9bXs2XaGXEW3+ZFs44MPuEcp6O7DB25Af+X+Bw4uwwUZfhyD0oe370LsjLioAb80HYDEDDo4y68qlPUUS28O1Pvk55YPb9pHEePjM/ampehUw23lcMOVrIeepTE0V2zPLuC7lRDvo2o1LeK869jIFVREZ30+KM9s+4facbVQAB7YP57ZDEkyXkZ6g+5RIUeoIC8j9hKDtE0VsRM0oLwpwVkw09HfVSwjVpdLe/BFWirroTW2XAY=; 31:+y/2EL06tT5/UGM3+TdGlgDWce9/CikAOXjkD64VNHClLV+mAU78n1XbRbJ+kOoEtQZen1gubxQKP/N/2W+xI+AQxoB9dsHOy/mQgK1PtnWCGp/nKLRl9zW0sAW6A+zi1nXZ52AlWY06c+v7s5ycp3uuzzotzBkfRouKQ1S99Ah5PkUOIt5hJhbECn5R9JJ3o5Y+8k6MuTpkp0k8qkm2RrD49JUOfs80Rosl97nkZkw= X-MS-TrafficTypeDiagnostic: CY4PR07MB3463: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3463; 20:Ad6EN61kCf8CjdSttS4lxtfQGS0qO5qttOCsF+RXXrEAym4Je5xchCZCve5wtXnfxq8XvHrYU+MBmW8a8Sd198zxKNAKA+TJLS+apRRG2TE5tcT6ggrfyZhX5gR1EAuG19t4kcua5d4fK5aV+gEbsZqY+HVkgPQkULqtkXC9l61y8CGXo/GyRsB09pvAaoCGGVdnIn6gnrkj9saNy51EvWVFORkkjjkmmkwb8DNmrZ0RRl6L2S1rvEf6vUuaJPy0caQY08z76z6/aXjK+my8BQ3MNIhFX8tAsi48At798GA82vvtjM6WVIoaOJnXpBr+IwuMl2uUmIRvVOPunnVOG9gPWG4MbcyvIY1QuSa8gTldoou/yapOqNLfC4VyF2WadEha8WPqNkczmYEE3SGC/t3qcX9R7jwQC8eea1gENwHKpuRxynEBS1iLRsYq7imVukle1nBc0nCJ/FSsnaqgezD6LmAQxjwhVAFpw6F+0M/7KJ5pgmQWkOeil2LlymtJGHvMJDfBJKSAcJaks248MGTiEb74N+TbzfC03y72V7gI3rPec3GRvvUP21235qqX1HJb0KTH9T+flrzaREYLFQgeI6OppYace32RnTzSeH4=; 4:AaeD5Zg5AfkiaIDX6y6gMHaAO8K+7HHDdgPT1yRWNDc/6bhkMAdMJHQhf40JekSQ+Jkp1tip9I7KlWQLb8YOZrnzqqqt9SzkagmXCA3uHaAoZhc/QC2FBJHM++4seEzdNgvd2m03/Ph9dWZyKCrr3eDrLnrhXpXd+M9KmwycY5tVFGdOzFcKGZYt3irh4W6DTEsjflvAI2i5G24+OyZzS1C2XODM1l4wmD+P1HPURP7SI+1pjPfMTcGl1KHwVpKNMOzPNA8UTVgL8rRN+Ata9A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3231022)(3002001)(93006095)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(20161123558100)(20161123564025)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3463; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3463; X-Forefront-PRVS: 0493852DA9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(376002)(346002)(199003)(189002)(105586002)(50466002)(47776003)(6666003)(189998001)(5003940100001)(2906002)(7736002)(305945005)(16526018)(25786009)(316002)(16586007)(97736004)(8936002)(68736007)(478600001)(42882006)(72206003)(66066001)(5660300001)(1076002)(3846002)(6116002)(107886003)(53936002)(36756003)(6486002)(50226002)(4326008)(106356001)(6506006)(48376002)(101416001)(33646002)(81166006)(8676002)(81156014)(6512007)(50986999)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3463; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3463; 23:eNZ+wYCTvQad6dW+cLOp1hX8UEwbu4m76ggDnjZUb?= =?us-ascii?Q?Gwj03wv8flizOAMBTZR/IdAgbKGZRYQIC/PuIYHzAWvclTPhZrtPJS13MTfM?= =?us-ascii?Q?rxoppwrbUBhDYi6MM/EOz81EatOidOHemgcZ5B9kKKnz3PQa+DK5ZPVdG96e?= =?us-ascii?Q?9h71p6zZzlq4NsIYZx2Z90UxrGCEflwqwf7CNHLMLj+dh8mXuqFe3f+pVuwH?= =?us-ascii?Q?/vRar6PFMUAvig2eKAjneCfwtnVjPeqWNX/6yxfrFMcUjwDBmksj4nR8lnE+?= =?us-ascii?Q?DSaDrMpeSligrhwMN8MfuhP1gqjHVRi7lGp37TPIq0NR3umgLTgxi/ObyA2X?= =?us-asc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Bm8yIAbgqpX/MWaOiaTvcW62NUbZBU5JF65DoTWmr2ifxt6191Y7bmWngrkYnIceFVG0lrq6bxj2N7U9NOqrexftDuI2vQePeyPikbHtRhubt/BGLLYStYHQw5C6533UJ6bXjooYnQi1jI42UCqgZcc+m4tdRnk7fxNykzPUeq8FCEOIM8MN4k0476WFDKiVeJsF165MacVi2lBDHRgWBLZfmD8PLtUDYEKq7d/Hswz3rewboakeJvLofYf7Rfgluv1u9R7INo1UfjNm8U4F0=; 5:LzaIiYXqboEQMHwgYbYxoi97milXsSct3G5h/X+66U+8s4duqVa5JvimGji9+wJKRqm9EBpk2PH1ln5lYwkED5lEEs+F8fEIZXO/f82S3TKTLFQ4CeXrxBmY2tbvq5Tugzmcp6V686WWHFy/wZiyTUWOS3do8/ggrNnB7CXRHYo=; 24:fJJ0+qAu1X+lW6xLl6L2TawV2zGxvSzryjgwDGmo+dxIgR7hcyR3zvkC/EQICblH8XX+Avzz8M9Av8sNyF0ffyQHzncPom5+PHalukqC0kQ=; 7:rpgsJ0Bc2HVnYfv1wWRxf6H9WANdErxFfXSCqObvp7VS/a1USIB21Ea4t0Q3XxuDtoUZkZMTeWCzPqnZUoCVGi5Qq+kJ9CvtjDWB0gWUnb6uylFsFx1pJQOmunkCUYm+LX1itzoc0Ko13NgsDBVTZ0AAH+cNGZt0zoNY0eld6rUYMtddA9NJofxsUvuuRvz1XGHHCJI28kVDgq3ZpR4yGddCZWbCGrwaK7WBhQqnAzxkBXpOe0ZbVBmtL05HLSJT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2017 10:33:35.6057 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 58374b82-8924-446b-97ca-08d52cdd7ee1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3463 Subject: [dpdk-dev] [PATCH 1/2] eal: fix legacy dynamic logs defaulting to debug 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: , X-List-Received-Date: Thu, 16 Nov 2017 10:33:39 -0000 Use RTE_LOG_LEVEL instead of RTE_LOG_DEBUG when registering dynamic logs for legacy modules. Fixes: c1b5fa94a46f ("eal: support dynamic log types") Signed-off-by: Pavan Nikhilesh --- lib/librte_eal/common/eal_common_log.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/common/eal_common_log.c b/lib/librte_eal/common/eal_common_log.c index e894b75ec..061e96ef9 100644 --- a/lib/librte_eal/common/eal_common_log.c +++ b/lib/librte_eal/common/eal_common_log.c @@ -181,8 +181,11 @@ __rte_log_register(const char *name, int id) return -ENOMEM; rte_logs.dynamic_types[id].name = dup_name; - rte_logs.dynamic_types[id].loglevel = RTE_LOG_DEBUG; - +#if RTE_LOG_LEVEL >= RTE_LOG_DEBUG + rte_logs.dynamic_types[id].loglevel = RTE_LOG_INFO; +#else + rte_logs.dynamic_types[id].loglevel = RTE_LOG_LEVEL; +#endif return id; } -- 2.14.1