summaryrefslogtreecommitdiff
path: root/drivers/bus/fslmc
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2018-04-25 16:16:37 -0700
committerThomas Monjalon <thomas@monjalon.net>2018-04-26 17:47:09 +0200
commit733daffa9851bb2d24a0b8819bad956fe7dfd521 (patch)
tree366a527756991cfb3f4c018dfe2b171ca821ad17 /drivers/bus/fslmc
parent06bfd1cbb4b594871b10d278a828c55e19a22a84 (diff)
downloaddpdk-733daffa9851bb2d24a0b8819bad956fe7dfd521.zip
dpdk-733daffa9851bb2d24a0b8819bad956fe7dfd521.tar.gz
dpdk-733daffa9851bb2d24a0b8819bad956fe7dfd521.tar.xz
bus/fslmc: do not log messages if bus not present
A typical distribution will compile with default config and all buses enabled. Therefore every driver should be silent and not log anything for this normal case. This patch gets rid of these messages when running on basic x86 environment such as bare metal or VM. fslmc: DPAA2: DPRC not available fslmc: FSLMC Bus Not Available. Skipping Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'drivers/bus/fslmc')
-rw-r--r--drivers/bus/fslmc/fslmc_bus.c2
-rw-r--r--drivers/bus/fslmc/fslmc_vfio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index d0b3261..943c01b 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -255,7 +255,7 @@ scan_fail_cleanup:
/* Remove all devices in the list */
cleanup_fslmc_device_list();
scan_fail:
- DPAA2_BUS_INFO("FSLMC Bus Not Available. Skipping");
+ DPAA2_BUS_DEBUG("FSLMC Bus Not Available. Skipping");
/* Irrespective of failure, scan only return success */
return 0;
}
diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c
index 675d160..749d92d 100644
--- a/drivers/bus/fslmc/fslmc_vfio.c
+++ b/drivers/bus/fslmc/fslmc_vfio.c
@@ -74,7 +74,7 @@ fslmc_get_container_group(int *groupid)
if (!g_container) {
container = getenv("DPRC");
if (container == NULL) {
- DPAA2_BUS_INFO("DPAA2: DPRC not available");
+ DPAA2_BUS_DEBUG("DPAA2: DPRC not available");
return -EINVAL;
}