summaryrefslogtreecommitdiff
path: root/drivers/bus/fslmc
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2018-04-25 18:27:00 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-05-14 00:35:53 +0200
commit627b677014ae1d161a282ddb08da4b3d343de018 (patch)
tree5af2e68e0080d57acddd0e42811733c68489867e /drivers/bus/fslmc
parent50245be05d1af2db808b41a0470448e39e2cb727 (diff)
downloaddpdk-627b677014ae1d161a282ddb08da4b3d343de018.zip
dpdk-627b677014ae1d161a282ddb08da4b3d343de018.tar.gz
dpdk-627b677014ae1d161a282ddb08da4b3d343de018.tar.xz
bus/fslmc: improve debug logging
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Diffstat (limited to 'drivers/bus/fslmc')
-rw-r--r--drivers/bus/fslmc/fslmc_bus.c4
-rw-r--r--drivers/bus/fslmc/fslmc_vfio.c7
-rw-r--r--drivers/bus/fslmc/portal/dpaa2_hw_dpio.c1
3 files changed, 4 insertions, 8 deletions
diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index 677fcc2..c6301b2 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -122,9 +122,9 @@ dump_device_list(void)
local_log_level = rte_log_get_level(dpaa2_logtype_bus);
if (global_log_level == RTE_LOG_DEBUG ||
local_log_level == RTE_LOG_DEBUG) {
- DPAA2_BUS_DEBUG("List of devices scanned on bus:");
+ DPAA2_BUS_LOG(DEBUG, "List of devices scanned on bus:");
TAILQ_FOREACH(dev, &rte_fslmc_bus.device_list, next) {
- DPAA2_BUS_DEBUG("%s", dev->device.name);
+ DPAA2_BUS_LOG(DEBUG, "\t\t%s", dev->device.name);
}
}
}
diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c
index 6ecd64a..96ba568 100644
--- a/drivers/bus/fslmc/fslmc_vfio.c
+++ b/drivers/bus/fslmc/fslmc_vfio.c
@@ -402,9 +402,6 @@ static int64_t vfio_map_mcp_obj(struct fslmc_vfio_group *group, char *mcp_obj)
goto MC_FAILURE;
}
- DPAA2_BUS_DEBUG("Region offset = 0x%"PRIx64" , region size = %"PRIu64"",
- (uint64_t)reg_info.offset, (uint64_t)reg_info.size);
-
v_addr = (size_t)mmap(NULL, reg_info.size,
PROT_WRITE | PROT_READ, MAP_SHARED,
mc_fd, reg_info.offset);
@@ -564,8 +561,8 @@ fslmc_process_iodevices(struct rte_dpaa2_device *dev)
break;
}
- DPAA2_BUS_DEBUG("Device (%s) abstracted from VFIO",
- dev->device.name);
+ DPAA2_BUS_LOG(DEBUG, "Device (%s) abstracted from VFIO",
+ dev->device.name);
return 0;
}
diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
index a741626..99f70be 100644
--- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
+++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
@@ -189,7 +189,6 @@ configure_dpio_qbman_swp(struct dpaa2_dpio_dev *dpio_dev)
return -1;
}
- DPAA2_BUS_DEBUG("Allocated DPIO Portal[%p]", dpio_dev->dpio);
dpio_dev->dpio->regs = dpio_dev->mc_portal;
if (dpio_open(dpio_dev->dpio, CMD_PRI_LOW, dpio_dev->hw_id,
&dpio_dev->token)) {