The rte_errno may be an RTE-specific error code,
use rte_strerror() instead of strerror().

Signed-off-by: Dengdui Huang <huangdeng...@huawei.com>
---
  drivers/net/af_xdp/rte_eth_af_xdp.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c 
b/drivers/net/af_xdp/rte_eth_af_xdp.c
index 814398ba4b..c74107d46a 100644
--- a/drivers/net/af_xdp/rte_eth_af_xdp.c
+++ b/drivers/net/af_xdp/rte_eth_af_xdp.c
@@ -2518,7 +2518,7 @@ rte_pmd_af_xdp_probe(struct rte_vdev_device *dev)
                ret = rte_mp_action_register(ETH_AF_XDP_MP_KEY, 
afxdp_mp_send_fds);
                if (ret < 0 && rte_errno != ENOTSUP) {
                        AF_XDP_LOG_LINE(ERR, "%s: Failed to register multi-process 
IPC callback: %s",
-                                  name, strerror(rte_errno));
+                                  name, rte_strerror(rte_errno));
                        return -1;
                }
        }

Acked-by: Maryam Tahhan <mtah...@redhat.com>

Reply via email to