bus/vdev: fix debug message on probing
authorThomas Monjalon <thomas@monjalon.net>
Thu, 21 Feb 2019 19:01:24 +0000 (20:01 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 Mar 2019 12:32:24 +0000 (12:32 +0000)
The log was printing the device name two times,
first one being supposed to be the driver name.
As we don't know yet the driver name, the log is simplified.

Fixes: 9bf4901d1a11 ("bus/vdev: remove probe with driver name option")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Rami Rosen <ramirose@gmail.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/bus/vdev/vdev.c

index 2c03ca4..7225411 100644 (file)
@@ -144,9 +144,7 @@ vdev_probe_all_drivers(struct rte_vdev_device *dev)
        int ret;
 
        name = rte_vdev_device_name(dev);
-
-       VDEV_LOG(DEBUG, "Search driver %s to probe device %s", name,
-               rte_vdev_device_name(dev));
+       VDEV_LOG(DEBUG, "Search driver to probe device %s", name);
 
        if (vdev_parse(name, &driver))
                return -1;