summaryrefslogtreecommitdiff
path: root/drivers/bus/dpaa/rte_dpaa_logs.h
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2018-04-25 18:27:02 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-05-14 00:37:18 +0200
commitfe33fe37fd8b63e140e9ed91443dc44fa62472d4 (patch)
treecad61b14c1ed3c6afaf96826ea2eb6f0190a5c25 /drivers/bus/dpaa/rte_dpaa_logs.h
parent339c1025a87c3eeb38a9ec5bf0679caf21bec7e6 (diff)
downloaddpdk-fe33fe37fd8b63e140e9ed91443dc44fa62472d4.zip
dpdk-fe33fe37fd8b63e140e9ed91443dc44fa62472d4.tar.gz
dpdk-fe33fe37fd8b63e140e9ed91443dc44fa62472d4.tar.xz
bus/dpaa: improve dynamic logging
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Diffstat (limited to 'drivers/bus/dpaa/rte_dpaa_logs.h')
-rw-r--r--drivers/bus/dpaa/rte_dpaa_logs.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/bus/dpaa/rte_dpaa_logs.h b/drivers/bus/dpaa/rte_dpaa_logs.h
index 0fd70bb..e414354 100644
--- a/drivers/bus/dpaa/rte_dpaa_logs.h
+++ b/drivers/bus/dpaa/rte_dpaa_logs.h
@@ -15,10 +15,7 @@ extern int dpaa_logtype_pmd;
extern int dpaa_logtype_eventdev;
#define DPAA_BUS_LOG(level, fmt, args...) \
- rte_log(RTE_LOG_ ## level, dpaa_logtype_bus, "%s(): " fmt "\n", \
- __func__, ##args)
-
-#define BUS_INIT_FUNC_TRACE() DPAA_BUS_LOG(DEBUG, " >>")
+ rte_log(RTE_LOG_ ## level, dpaa_logtype_bus, "dpaa: " fmt "\n", ##args)
#ifdef RTE_LIBRTE_DPAA_DEBUG_BUS
#define DPAA_BUS_HWWARN(cond, fmt, args...) \
@@ -31,7 +28,11 @@ extern int dpaa_logtype_eventdev;
#endif
#define DPAA_BUS_DEBUG(fmt, args...) \
- DPAA_BUS_LOG(DEBUG, fmt, ## args)
+ rte_log(RTE_LOG_DEBUG, dpaa_logtype_bus, "dpaa: %s(): " fmt "\n", \
+ __func__, ##args)
+
+#define BUS_INIT_FUNC_TRACE() DPAA_BUS_DEBUG(" >>")
+
#define DPAA_BUS_INFO(fmt, args...) \
DPAA_BUS_LOG(INFO, fmt, ## args)
#define DPAA_BUS_ERR(fmt, args...) \