From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 9C5EBA05FE for ; Tue, 19 Mar 2019 04:09:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 860942B9E; Tue, 19 Mar 2019 04:09:23 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id F229D152A; Tue, 19 Mar 2019 04:09:21 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Mar 2019 20:09:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,496,1544515200"; d="scan'208";a="329842140" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 18 Mar 2019 20:09:21 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 18 Mar 2019 20:09:20 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 18 Mar 2019 20:09:20 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.74]) by shsmsx102.ccr.corp.intel.com ([169.254.2.163]) with mapi id 14.03.0415.000; Tue, 19 Mar 2019 11:09:18 +0800 From: "Xu, Rosen" To: "Pei, Andy" , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [PATCH] raw/ifpga: modify log output. Thread-Index: AQHU2kuRbb85JvzXKEKAdgeQpJbwdaYSTOow Date: Tue, 19 Mar 2019 03:09:18 +0000 Message-ID: <0E78D399C70DA940A335608C6ED296D73A613AE2@SHSMSX104.ccr.corp.intel.com> References: <1552556863-35966-1-git-send-email-andy.pei@intel.com> In-Reply-To: <1552556863-35966-1-git-send-email-andy.pei@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjVkZGU4M2MtYmEyNy00YjJjLWFiMzQtYTY5ZmE3NmYyNmU1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicWNoM3ZEY3BBOWZuMFo1VlhaNGt0M0NTXC9CMk1UMmdXamRnWHd6SGVpU2d4U1ZEZlpGYkpxdG1oblFKRGRFMnEifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] raw/ifpga: modify log output. 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" Message-ID: <20190319030918.TwgIOO-qlv5CDidbYsDxCJg9svtWfVUNcOmDVe3A_5M@z> Hi, This macro IFPGA_RAWDEV_PMD_FUNC_TRACE is very useful for developer. To enable this macro, pls follow these guides: 1. enable gcc debug mode such as options: EXTRA_CFLAGS=3D'-O0 -g' 2. add this option in testpmd startup: --log-level=3Ddriver.raw.init,8 > -----Original Message----- > From: Pei, Andy > Sent: Thursday, March 14, 2019 17:48 > To: dev@dpdk.org > Cc: Pei, Andy ; Xu, Rosen ; > stable@dpdk.org > Subject: [PATCH] raw/ifpga: modify log output. >=20 > print function name in IFPGA_RAWDEV_PMD_FUNC_TRACE. > The original code just print ">>", no other useful infomation is printed. > A new line goes after every IFPGA log. >=20 > Fixes: ef1e8ede3da5 ("raw/ifpga: add Intel FPGA bus rawdev driver") > Cc: rosen.xu@intel.com > Cc: andy.pei@intel.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Andy Pei > --- > drivers/raw/ifpga_rawdev/ifpga_rawdev.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/raw/ifpga_rawdev/ifpga_rawdev.h > b/drivers/raw/ifpga_rawdev/ifpga_rawdev.h > index c7759b8..52fca63 100644 > --- a/drivers/raw/ifpga_rawdev/ifpga_rawdev.h > +++ b/drivers/raw/ifpga_rawdev/ifpga_rawdev.h > @@ -8,10 +8,11 @@ > extern int ifpga_rawdev_logtype; >=20 > #define IFPGA_RAWDEV_PMD_LOG(level, fmt, args...) \ > - rte_log(RTE_LOG_ ## level, ifpga_rawdev_logtype, "ifgpa: " fmt, \ > + rte_log(RTE_LOG_ ## level, ifpga_rawdev_logtype, "ifgpa: " fmt "\n", > \ > ##args) >=20 > -#define IFPGA_RAWDEV_PMD_FUNC_TRACE() > IFPGA_RAWDEV_PMD_LOG(DEBUG, ">>") > +#define IFPGA_RAWDEV_PMD_FUNC_TRACE() \ > + IFPGA_RAWDEV_PMD_LOG(DEBUG, "%s()", __func__) >=20 > #define IFPGA_RAWDEV_PMD_DEBUG(fmt, args...) \ > IFPGA_RAWDEV_PMD_LOG(DEBUG, fmt, ## args) > -- > 1.8.3.1