eventdev: use same log macro for all unsupported calls
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 26 Feb 2019 21:34:22 +0000 (13:34 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 1 Mar 2019 17:17:36 +0000 (18:17 +0100)
The driver already has RTE_EDEV_XXX log macros so use
them in two more places.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eventdev/rte_eventdev.c

index ebaf308..4d4f079 100644 (file)
@@ -892,7 +892,7 @@ rte_event_port_link(uint8_t dev_id, uint8_t port_id,
        dev = &rte_eventdevs[dev_id];
 
        if (*dev->dev_ops->port_link == NULL) {
-               RTE_PMD_DEBUG_TRACE("Function not supported\n");
+               RTE_EDEV_LOG_ERR("Function not supported\n");
                rte_errno = -ENOTSUP;
                return 0;
        }
@@ -951,7 +951,7 @@ rte_event_port_unlink(uint8_t dev_id, uint8_t port_id,
        dev = &rte_eventdevs[dev_id];
 
        if (*dev->dev_ops->port_unlink == NULL) {
-               RTE_PMD_DEBUG_TRACE("Function not supported\n");
+               RTE_EDEV_LOG_ERR("Function not supported");
                rte_errno = -ENOTSUP;
                return 0;
        }