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 81014A0096 for ; Thu, 14 Mar 2019 10:51:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 51B1C3572; Thu, 14 Mar 2019 10:51:49 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E65412C17; Thu, 14 Mar 2019 10:51:47 +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 orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Mar 2019 02:51:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,478,1544515200"; d="scan'208";a="328548048" Received: from dipei-st-npg.sh.intel.com ([10.67.110.220]) by fmsmga005.fm.intel.com with ESMTP; 14 Mar 2019 02:51:45 -0700 From: Andy Pei To: dev@dpdk.org Cc: andy.pei@intel.com, rosen.xu@intel.com, stable@dpdk.org Date: Thu, 14 Mar 2019 17:47:43 +0800 Message-Id: <1552556863-35966-1-git-send-email-andy.pei@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190314094743.2-T4aajDTC8nHTy7wfiTE1PruxrW7Rfl9nlJUkHjgmE@z> 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. Fixes: ef1e8ede3da5 ("raw/ifpga: add Intel FPGA bus rawdev driver") Cc: rosen.xu@intel.com Cc: andy.pei@intel.com Cc: stable@dpdk.org Signed-off-by: Andy Pei --- drivers/raw/ifpga_rawdev/ifpga_rawdev.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; #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) -#define IFPGA_RAWDEV_PMD_FUNC_TRACE() IFPGA_RAWDEV_PMD_LOG(DEBUG, ">>") +#define IFPGA_RAWDEV_PMD_FUNC_TRACE() \ + IFPGA_RAWDEV_PMD_LOG(DEBUG, "%s()", __func__) #define IFPGA_RAWDEV_PMD_DEBUG(fmt, args...) \ IFPGA_RAWDEV_PMD_LOG(DEBUG, fmt, ## args) -- 1.8.3.1