net/bonding: use dynamic log type for error message
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 16 Jul 2019 20:39:10 +0000 (13:39 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
The generic RTE_LOGTYPE_PMD is a historical relic and should
not be used. Bonding driver was still using it in one place.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bonding/rte_eth_bond_args.c

index 936440f..f298ea0 100644 (file)
@@ -81,7 +81,7 @@ parse_port_id(const char *port_str)
 
        pci_bus = rte_bus_find_by_name("pci");
        if (pci_bus == NULL) {
-               RTE_LOG(ERR, PMD, "unable to find PCI bus\n");
+               RTE_BOND_LOG(ERR, "unable to find PCI bus\n");
                return -1;
        }