patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] raw/ifpga: modify log output.
@ 2019-03-14  9:47 Andy Pei
  2019-03-19  3:09 ` Xu, Rosen
       [not found] ` <1553069009-64692-1-git-send-email-andy.pei@intel.com>
  0 siblings, 2 replies; 7+ messages in thread
From: Andy Pei @ 2019-03-14  9:47 UTC (permalink / raw)
  To: dev; +Cc: andy.pei, rosen.xu, stable

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 <andy.pei@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-03-20 11:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14  9:47 [dpdk-stable] [PATCH] raw/ifpga: modify log output Andy Pei
2019-03-19  3:09 ` Xu, Rosen
2019-03-19  7:56   ` Pei, Andy
2019-03-19 10:40     ` Xu, Rosen
2019-03-20  7:36       ` Pei, Andy
     [not found] ` <1553069009-64692-1-git-send-email-andy.pei@intel.com>
2019-03-20  8:16   ` [dpdk-stable] [PATCH v2] " Xu, Rosen
2019-03-20 11:11     ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).