From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0046.outbound.protection.outlook.com [104.47.36.46]) by dpdk.org (Postfix) with ESMTP id 434831AEE8 for ; Sat, 9 Dec 2017 14:24:49 +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=DcpoRuyBzxPH4m0jPIcKixxveqJ7kG5qK3w5uLB5eQM=; b=NdDssjr+bOjKjTsrsmqIXMGyEWvoEUAuT5SDvris3cBiatV+qnrsgE9J/q/ucOtzU1rQVGRtWsXVVh8MtD78YR77CbLwrPap/1vjSmPP9eBYyQfLUug+iW/xvqsI9f0cJz4Ol4oOixmQQE+nxG3Q+CpO3lJ3rohAzPY9GPJMvYQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (103.16.71.47) by BN6PR07MB3460.namprd07.prod.outlook.com (10.161.153.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Sat, 9 Dec 2017 13:24:45 +0000 From: Pavan Nikhilesh To: ferruh.yigit@intel.com, olivier.matz@6wind.com, thomas@monjalon.net Cc: dev@dpdk.org, Pavan Nikhilesh Date: Sat, 9 Dec 2017 18:53:57 +0530 Message-Id: <20171209132358.24263-2-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171209132358.24263-1-pbhagavatula@caviumnetworks.com> References: <20171122092806.17194-1-pbhagavatula@caviumnetworks.com> <20171209132358.24263-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [103.16.71.47] X-ClientProxiedBy: SG2PR0601CA0013.apcprd06.prod.outlook.com (10.170.128.23) To BN6PR07MB3460.namprd07.prod.outlook.com (10.161.153.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aafc3a6e-1118-4d0c-3665-08d53f08381d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:BN6PR07MB3460; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3460; 3:7wN2Rs/OftRsc2eCLHw061WA1/3pmNBjFyg04BwviTxS4oGkem4ICZzDkc02yYr2Yo/Od9ikjGwk31+R2naQoVc5GoyuGrTv0CDLo3mB+ba+UqUSToioVis4S53vlSOVrGsk4dJJsfTRU9s7lZBG2X9NSIuQ/dgf2o3J7VlFARJFRf3MjCDLC5Jptm0q2f5bI9KKFffK7GHpYf7ZWm2dX+ka5qWM3iq9C7Bv6vvai2sUp5dbIEqOHDs39Vk1EbDX; 25:JnKmbbXsn5pWVMae0n8+FVvHtwEu4C8ZHsEk3DV+1p6ye1at4NhoC70+fzWonXkGxwwaAJDXR4oe2QwMNF/sGxBowy9sK35q++FF+l2X5ivMSagdfa/Q6YCWvyYRQeIz7G3Pexwx/8LQDIl1ZXwl954Ng/TCTWUe2yU9ht1u+JFcpI9Z4Tm2++JzOgo8NeH9z3EZ6zt+QiGM3bOz6sGiXEGrBDLqSP0fQ/hfm+/6G3i/AzMtkg3/buFn03KM8X80WbEJPIunC7/gSj004p5sTXk8TveHG6xxXWXU2yON1FE0CfFtQfV02BnIHbmX4g6CCZjpPRSMZ/0cGZa8IET8yg==; 31:lqdKKaKSpjAY8Q32fI4VabIj/6DB1BEDE0WtcMpykkttz3IL/FVFWBp2d2P+O5lyuxLCUosmR5Rv4MY5AvQJ9PZ4bbWGEv6cemRrL+UmvNMZuK8WV+AfgAejvwK8/vmEDXMB6olSUQQh9TlHqkT6qocV+qEI3MHiSUqJfi4ymt8Qb/CU/8vgJhTTFBje311oeS7OGr4DWI5ii1doR+jGl8gpa1OJcihbpd50btf7vj8= X-MS-TrafficTypeDiagnostic: BN6PR07MB3460: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3460; 20:DGNZXH/YOHo8kviqwZnExhxKmpizvhNx0d8BxtnmC3CHkQPup8NR5Ck0WbmakFPjLBPE4PKa1JD32HsJeOKhaf0fHEi/4OM8Sp2QkXA7QyO0wOUdpzaoetZxji+qGNiZh9d//10H3zEncFobt7F58jKrXUhJ0WJr+Z9dTMRXgxFpP2OelKYG2K4bF0B+xkWHIxHZHXnIry7k+Nos51su1ZxNKUpOSu8O4jRy73CbA/Lvo52ng+Lpg46kJ+jN0XirxrfDWqVaA2Xy5gmNPiiSpW5ADokJXK0QbBVOmvpq11wvlW91bzELCQZNUvCBVyqCkWtF94/mpAOtB7e4Mdl9hz+W2Ohkhp3ObA+7QjZo2KwHIHzCNQp0qLkIFkIld3c6nI32a3boJH7pq7u4AGg1eq19nJs6/SkCp1g1oghQPRLjsqnf97YgbpLKSOQAoSgjEatDhsir414IFyUcntmVzrrDPTPuPuUwAIvV428smGr2SUTR6SseX1+H2Vybv5N7e2HV3u5pM6ffyXHSeI0EDW1U2YOCvcUf0AycAzS/ko3G33E8O39y5VG9bmCcUES5mCkqw64kjtX34vfjKDSgBmZy61TYkddF5zm3mw3GBzk=; 4:PgYViVsi60FDFEm0MSli+TiL6y2NpZkt7kal3LnmC0uPbabjXTvpWWavToREtRdc62mQfZAHLtekor1/idpMXrYg6Yg15pDMbm3wBEGHlC2LSY9xSE494MR0KzS+4Nj8qh1DFWqz6PN0weVLKWFnA4vnem4k4e/1oZ8t/KReT3E6kC8bEp8uag++Dr0G2kR0I+ctc7C/6gDCOph6NGa+IPTml3Dyq/ACDoc9i9T8CIz9/E2CvbWJiSRwpwnDrhbgXu1+KQwDXDaWI329rbRjww== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3231022)(10201501046)(93006095)(3002001)(6041248)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011); SRVR:BN6PR07MB3460; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN6PR07MB3460; X-Forefront-PRVS: 05168A3970 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(376002)(346002)(189003)(199004)(305945005)(2906002)(68736007)(16586007)(1076002)(16526018)(6666003)(2950100002)(5660300001)(42882006)(316002)(81156014)(50226002)(97736004)(81166006)(8676002)(52116002)(8936002)(6116002)(7736002)(51416003)(72206003)(3846002)(478600001)(25786009)(33646002)(107886003)(6512007)(76176011)(4326008)(53936002)(47776003)(66066001)(6506006)(6486002)(48376002)(50466002)(105586002)(106356001)(36756003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3460; H:localhost.localdomain; 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; BN6PR07MB3460; 23:j/MYuEe3wvGQfT8pbKMFljmXzwNWqOiaCawQUry6E?= =?us-ascii?Q?2v+WgEpWEZgiVJDC5f+80O05bXBv1yezl8LvbDmXwjVLwDOS1O0uMf+Vh1oU?= =?us-ascii?Q?ZILiWEk+n16o/5KOIxZMt2gu/MWvGxbuY7UDKj8SOpNwe3qpHlwNFgoNnjWq?= =?us-ascii?Q?zvzTkgojehpx9uevvlMtlYvaaR6e81/XWRIJGub+rVQbmqqoGJfPG0+vWHFI?= =?us-ascii?Q?8/UlOURl+MPqbczHOBGXZurIg+y6Ntzz4WkWJuKGaC5p2gxGS6tKU3IdWnRw?= =?us-ascii?Q?dHBBfi+5FUxPi/MFIc0ScLpn/M7tjre0D8JUBeum9ljTs2uQ8M8VMv4ODa6i?= =?us-ascii?Q?/IQ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6S0JN8HyAVljrE+Fv9sSnr9UUeSGgdiT2b0fSojfBV+PrGhw6OJb10qLHNR5aOD2cJ/6AHavNHmk2S5TKC05zuZUaRj/0noLZfAy5RoLhFrQ3nUexxz0UKIz/vqMiI8AoAPmjggUqJ3XCkfjA5Yf3qGMoeeKPtHqTsXzKpIyjMEbMJyXLYx4AMi71hBGAd15/QXdQHCorBCjmPbxcDBqzKm9H7QfPxBd1q4j1ShazRTCxaW2yCpDg9OKgUVAmQKpWbksJ0LZ8XD2P9/xD+BI7HVbc95/s=; 5:DRut4OUM/edC/n+1bML4rJQ+GAOSLFLSFBhbtfSIo92zaNw5sbtbmud/qlPRLP1zSMzzQePKY+599Sd3n/2FYnmbbVHY+q7/fbHeHE0DeXgjkXLaBxYpOJ4hhIbqsxrXQe/13AJOFXkwpDkPn96q0xC0PkrYXAp0gs9cdfdPPcw=; 24:IxvPKgmkdvut3d2AwOja3ogkxj9kLCtnYT6C6Fp3iPPtmaS5RLJiaA1XfnWXkBLDbqylon0wbjFqgIsWKlmQUYHEqpv6f1cwGs6UHxMv5s4=; 7:4kQrEx68drMh0xvhBbyijw62/qTu8kDrGcen45t8TtCqK3mWskf01Y/lRZyAy/cxKOxdl+Bc56tAxDxm4nyW3ug5KHzPumPZEHJmaYHiY2NNYK91BZ/paQqdri+GxSiD2+gQ/+ea/6RaktxsJSBTT6ELwv29MkiioUsNYqGDeftFD9RbXZOdKDQ+/pFVyFEzpqMOf9qwN68h0+j7e12flvlTwMTkuyUaxP2KVjeQ6vKNMqcmgqoLT3ktOzBNQd4l SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2017 13:24:45.8394 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aafc3a6e-1118-4d0c-3665-08d53f08381d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3460 Subject: [dpdk-dev] [PATCH v2 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: Sat, 09 Dec 2017 13:24:49 -0000 Use global default loglevel to DEBUG(8) and dynamic default loglevel to INFO(7). Signed-off-by: Pavan Nikhilesh Reviewed-by: Olivier Matz --- 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