From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E91342904 for ; Thu, 20 Apr 2017 20:35:37 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Apr 2017 11:35:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,225,1488873600"; d="scan'208,217";a="76877650" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 20 Apr 2017 11:35:31 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 20 Apr 2017 11:35:30 -0700 Received: from fmsmsx101.amr.corp.intel.com ([169.254.1.191]) by FMSMSX154.amr.corp.intel.com ([169.254.6.222]) with mapi id 14.03.0319.002; Thu, 20 Apr 2017 11:35:30 -0700 From: "Lu, Patrick" To: "dev@dpdk.org" Thread-Topic: DPDK log system is not working Thread-Index: AdK6A+f0OekeKvn6Tg2M0nWBN4yJlg== Date: Thu, 20 Apr 2017 18:35:29 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.1.200.106] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] DPDK log system is not working 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, 20 Apr 2017 18:35:38 -0000 Hi, I've recently rebased my DPDK code from v16.07 to v17.05-rc1 and learned rt= e_set_log_type() API is deprecated now, so I switched to rte_log_set_level(= ) API. My old code was as follow: #define C2CV3 RTE_LOGTYPE_USER1 #define D RTE_LOG_DEBUG #define I RTE_LOG_INFO #define N RTE_LOG_NOTICE rte_set_log_type(C2CV3, 1); rte_log(I, C2CV3, "Hello World\n"); The new code (according to the rte_set_log_type or test_log.c): rte_log_set_level(C2CV3, 0); rte_log(I, C2CV3, "Does not work\n"); Also, the test_log.c looks broken too. Patrick