summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Pei <andy.pei@intel.com>2019-03-27 09:32:57 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-29 17:25:32 +0100
commita3a6a3d94f7efd8fe5d4db97823085bf3a0b2ac5 (patch)
tree17396d96ad7267cfc4b52c6ba503f07efafa1d2a
parent0fe3f18f78d887ab8f4826aef3d0bf7bb396ba0e (diff)
downloaddpdk-next-eventdev-a3a6a3d94f7efd8fe5d4db97823085bf3a0b2ac5.zip
dpdk-next-eventdev-a3a6a3d94f7efd8fe5d4db97823085bf3a0b2ac5.tar.gz
dpdk-next-eventdev-a3a6a3d94f7efd8fe5d4db97823085bf3a0b2ac5.tar.xz
raw/ifpga: modify log output
Print function name in ifpga log and a new line goes after every IFPGA log. Fixes: ef1e8ede3da5 ("raw/ifpga: add Intel FPGA bus rawdev driver") Cc: stable@dpdk.org Signed-off-by: Andy Pei <andy.pei@intel.com> Reviewed-by: Rosen Xu <rosen.xu@intel.com>
-rw-r--r--drivers/raw/ifpga_rawdev/ifpga_rawdev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/raw/ifpga_rawdev/ifpga_rawdev.h b/drivers/raw/ifpga_rawdev/ifpga_rawdev.h
index c7759b8..234ce36 100644
--- a/drivers/raw/ifpga_rawdev/ifpga_rawdev.h
+++ b/drivers/raw/ifpga_rawdev/ifpga_rawdev.h
@@ -8,8 +8,8 @@
extern int ifpga_rawdev_logtype;
#define IFPGA_RAWDEV_PMD_LOG(level, fmt, args...) \
- rte_log(RTE_LOG_ ## level, ifpga_rawdev_logtype, "ifgpa: " fmt, \
- ##args)
+ rte_log(RTE_LOG_ ## level, ifpga_rawdev_logtype, "%s(): " fmt "\n", \
+ __func__, ##args)
#define IFPGA_RAWDEV_PMD_FUNC_TRACE() IFPGA_RAWDEV_PMD_LOG(DEBUG, ">>")