[PATCH v6 13/14] app/dumpcap: use rte strerror
Dengdui Huang
huangdengdui at huawei.com
Thu Nov 14 12:39:59 CET 2024
The rte_errno may be an RTE-specific error code,
use rte_strerror() instead of strerror().
Signed-off-by: Dengdui Huang <huangdengdui at 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
More information about the dev
mailing list