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

Signed-off-by: Dengdui Huang <huangdeng...@huawei.com>
Acked-by: Chengwen Feng <fengcheng...@huawei.com>
Acked-by: Morten Brørup <m...@smartsharesystems.com>
Acked-by: Huisong Li <lihuis...@huawei.com>
---
 drivers/net/tap/rte_eth_tap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c
index 159d2e9c75..441200e498 100644
--- a/drivers/net/tap/rte_eth_tap.c
+++ b/drivers/net/tap/rte_eth_tap.c
@@ -2480,7 +2480,7 @@ rte_pmd_tap_probe(struct rte_vdev_device *dev)
                        ret = rte_mp_action_register(TAP_MP_REQ_START_RXTX, 
tap_mp_req_start_rxtx);
                        if (ret < 0 && rte_errno != ENOTSUP) {
                                TAP_LOG(ERR, "tap: Failed to register IPC 
callback: %s",
-                                       strerror(rte_errno));
+                                       rte_strerror(rte_errno));
                                return -1;
                        }
                }
@@ -2540,7 +2540,7 @@ rte_pmd_tap_probe(struct rte_vdev_device *dev)
                ret = rte_mp_action_register(TAP_MP_KEY, tap_mp_sync_queues);
                if (ret < 0 && rte_errno != ENOTSUP) {
                        TAP_LOG(ERR, "tap: Failed to register IPC callback: %s",
-                               strerror(rte_errno));
+                               rte_strerror(rte_errno));
                        goto leave;
                }
        }
-- 
2.33.0

Reply via email to