The rte_errno may be an RTE-specific error code,
use rte_strerror() instead of strerror().
Signed-off-by: Dengdui Huang <huangdeng...@huawei.com>
---
 app/dumpcap/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/dumpcap/main.c b/app/dumpcap/main.c
index 3d3c0dbc66..6b122862af 100644
--- a/app/dumpcap/main.c
+++ b/app/dumpcap/main.c
@@ -796,7 +796,7 @@ static dumpcap_out_t create_output(void)
                                           version(), capture_comment);
                if (ret.pcapng == NULL)
                        rte_exit(EXIT_FAILURE, "pcapng_fdopen failed: %s\n",
-                                strerror(rte_errno));
+                                rte_strerror(rte_errno));
                free(os);
 
                TAILQ_FOREACH(intf, &interfaces, next) {
-- 
2.33.0

Reply via email to