From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0079.outbound.protection.outlook.com [104.47.32.79]) by dpdk.org (Postfix) with ESMTP id 6796D25B3 for ; Wed, 22 Nov 2017 10:28:34 +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=z6mFd/mj+o0Gxj665Z8Q2cDMtBYyRzUOzt5vGbpM/40=; b=HemUYw8EV1BntdqKEogLy0AEzxsuLUVnaQRoAZBajLPtJaieeUQNMCwrAiUtbr8Xwn0+tuhczdgZuL4CafXNWEruyp/qFRLCAzDgikFk9EIoMf8ycgigIADKj46/rzTrwU4DnLzVBVZ9S/nB4x515XNUyZqvMMsa8whZ1/0/NDQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by DM5PR07MB3468.namprd07.prod.outlook.com (10.164.153.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Wed, 22 Nov 2017 09:28:29 +0000 From: Pavan Nikhilesh To: ferruh.yigit@intel.com, olivier.matz@6wind.com, thomas@monjalon.net Cc: dev@dpdk.org, Pavan Nikhilesh Date: Wed, 22 Nov 2017 14:58:05 +0530 Message-Id: <20171122092806.17194-2-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171122092806.17194-1-pbhagavatula@caviumnetworks.com> References: <20171122092806.17194-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: CY1PR07CA0002.namprd07.prod.outlook.com (10.166.202.12) To DM5PR07MB3468.namprd07.prod.outlook.com (10.164.153.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 86d42646-c809-4651-fb66-08d5318b6597 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600022)(4604075)(2017052603258); SRVR:DM5PR07MB3468; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3468; 3:4KulI5OM7UiOdBr5ANyDbC3uGEToheDIcyEsnzj3M7GF5iommYdn3Vuu2gvhOB2S6GFSAnX3Z8YjtX1GALE+i0SPDGKRZvDdnpG5zmft+pGcAlljsufDNciDNN8x6qlZRkdcmMdMLSk1RYIWZuLyiUa3hPpcL8PzLfg6JJt53lM8IV50w0i5D2kIUwfI+GqgLwrTZeoWhPDhwoe0lzkCPbZKczNzNXFE/STpB1/icgTWswfxmEYU1dXw93lvVjw0; 25:PJlbXz7dyMytzLhFew9s3ud8jWbZZjC3mUEoVvlaWAhuYD2OkgJx/BnmzjNAPvFD+l+V2RFpeAT0sfoCYDoHkQTFqadiaIU5Kjf/8LfEcqc2Nj/Oe4KnefHEj/8ruIbltrHAxcITI0E6aFfmNcFiLdibpe0MjzLk9Ewu6V038J2Dl2pNbm7J9szdl7oVtKF1peFy2Fxrpxm2KRwAvwFBH9DrP2OFvQ2Tl2YiTA4ZuqsCNgszEUtMPVLw3SbuaCQ5mmarsUpfYuNRpQCIwwjuZ3Qj4527QGMKtIEhOF9T/EVOX6MRFljFNiiAS6iYcqypGBd5fmjzPmG9hD8D+p30VA==; 31:m9T9zXv04YDDbmaLLuo3PM6Az7pMbKvCDxQ8/+mxesJZSkT2/EBadXh4oVzDgP0/Y5MiCg1k9nktodVwKdyCu70y75RRXaAC+Tn5T/Q8eroSJQUi6nf1yAAUUAWT2s/57d6YApDC7HbM3B95e+TBi2IgpJZ2/9V/OanP2SNnKMZQZ3s8xclTdqWVz+Z3GwxyDOak+4B+QOQavAROYBiA3/aZVgvONrhfb2nLoiCPi8k= X-MS-TrafficTypeDiagnostic: DM5PR07MB3468: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3468; 20:imu7D7E1DOJp14ejP0Cp4IVMmfk8btvBhHaQLzWqimesD8B78+jypErrdGPK46Tl7t4qhdqV0EC6IxVSzef1PMTFI+uibavM3gE7zeFfpqxdkwaTus1wmm6h3ioJ4xyb6WxwSGO31H7HrJTAFrSrRFJScHEd1UXOMKwr8HyITFr6xCV7USaHCZl/51ii2EUHkrwKwJMvuTzPvKp2SPGY7tDOG66D8hPi5uUZKevSUJOsqmJ7H+cqbUkwCu45vHZZ8SsRxQuSaAIclWM9astg28sGlLOKmkMrU80O7dPucML2Naj14VXZICQmDvfIzus837Kq4r/o+d8ju0dFmP+GRjYMBTb+GsDL6QsJWZhJxkreLDzPsy6WumYdrH4Qb6ZVbW0Zgm+VqCSSimrFDGotP8Gql+DP4iBmhmBseTitQVT4vWiPJqXg/Gknpnx0OstrT2lWdevxmXEXkrp9TOdrLB8F0dMNg9C9gfjSuutsf+OjiDeJLZUyxfhy72uoV9XdfqxcwtT57/zKK1Dbo8ALbc3ENzRnm7aDE1yTQfN3IR3IgtYmJg3RG0AJJKmhtb4zuQqDlkmxaKZBR302aYwoGSTiq2BZTa+McP1/CTUBRjw=; 4:kPrf9UerpAyTPxiXHpgOuvFZKGrs/fXNP4dHVZkLov7mkyNdGvJ9lk0FBTY+rfdTSE6rrOFdYzWN5U6apvyC944jxsyFFIHvGUnb+D73QUTtUB28S5LqbhkJB26b0LB9j4keM7Z3RjwEV55sSLLs1pDzv/mH1wpHEFo+hm5QlkKX75ERHKRMqpJQ4n/yKtmoS9BHx09Rf1hDuu+Agw2gA5W+qgGW40f6qgfpmjIHYrzVVHNZL7/w2NxCLpN+GwckbHkqCxOS4MH1x7bmtqh55Q== 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)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(3231022)(6041248)(20161123555025)(20161123558100)(20161123564025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR07MB3468; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR07MB3468; X-Forefront-PRVS: 0499DAF22A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(189002)(199003)(66066001)(81166006)(97736004)(8676002)(50466002)(68736007)(47776003)(6666003)(42882006)(2950100002)(50986999)(76176999)(101416001)(5003940100001)(50226002)(2906002)(81156014)(69596002)(6486002)(305945005)(4326008)(36756003)(105586002)(106356001)(6512007)(33646002)(48376002)(107886003)(5009440100003)(53936002)(6506006)(7736002)(478600001)(8936002)(72206003)(189998001)(16526018)(5660300001)(16586007)(316002)(53416004)(1076002)(3846002)(6116002)(25786009)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3468; H:Pavan-LT.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; DM5PR07MB3468; 23:vYeoBUh81x3JCuc3M9mXLtu0ETMccmkoQ6smiZnBL?= =?us-ascii?Q?H4e57TNRhqf4H6PGNwtu97RvTjZ+mA3lTV2aU51+YcnqNxSU/IhlcTTN1saJ?= =?us-ascii?Q?AK55iuLMm8LlE1JT/ixBegasgOMCLc6TWi0S6AnAI3dyBMEwLEp0Pnix0dHZ?= =?us-ascii?Q?hq0kG08EpYV2LJiYMCUIV2qhkvBGuhvizVXZwsJBh5wGo/SSQ7hkHm0KXdFe?= =?us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A8jk6EngtNWwXU3A59zIMeD9W85c SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2017 09:28:29.9811 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 86d42646-c809-4651-fb66-08d5318b6597 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3468 Subject: [dpdk-dev] [PATCH 2/3] eal: update default log levels 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: Wed, 22 Nov 2017 09:28:34 -0000 Use global default loglevel to DEBUG(8) and dynamic default loglevel to INFO(7). Signed-off-by: Pavan Nikhilesh --- lib/librte_eal/common/eal_common_log.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/librte_eal/common/eal_common_log.c b/lib/librte_eal/common/eal_common_log.c index fa9ac7247..3210cad7c 100644 --- a/lib/librte_eal/common/eal_common_log.c +++ b/lib/librte_eal/common/eal_common_log.c @@ -181,7 +181,7 @@ __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; + rte_logs.dynamic_types[id].loglevel = RTE_LOG_INFO; return id; } @@ -257,11 +257,7 @@ rte_log_init(void) { uint32_t i; -#if RTE_LOG_LEVEL >= RTE_LOG_DEBUG - rte_log_set_global_level(RTE_LOG_INFO); -#else - rte_log_set_global_level(RTE_LOG_LEVEL); -#endif + rte_log_set_global_level(RTE_LOG_DEBUG); rte_logs.dynamic_types = calloc(RTE_LOGTYPE_FIRST_EXT_ID, sizeof(struct rte_log_dynamic_type)); -- 2.14.1