diff options
author | Matias Elo <matias.elo@nokia.com> | 2024-05-06 11:15:46 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2024-06-05 13:11:15 +0300 |
commit | 374159b3e6c321002179e75f6c3f47113289d781 (patch) | |
tree | 623cc7d698beeb5121f27232c14ad97900e6f063 | |
parent | 41d81bfb453f1464e1c56360b2fe384eaff45cfb (diff) |
linux-dpdk: init: improve error log
Include rte_errno value in rte_eal_init() in failure log.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
-rw-r--r-- | platform/linux-dpdk/odp_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/linux-dpdk/odp_init.c b/platform/linux-dpdk/odp_init.c index 02188abd4..0e855524e 100644 --- a/platform/linux-dpdk/odp_init.c +++ b/platform/linux-dpdk/odp_init.c @@ -26,6 +26,7 @@ #include <rte_config.h> #include <rte_debug.h> #include <rte_eal.h> +#include <rte_errno.h> #include <rte_string_fns.h> enum init_stage { @@ -268,7 +269,7 @@ static int _odp_init_dpdk(const char *cmdline) i = rte_eal_init(dpdk_argc, dpdk_argv); if (i < 0) { - _ODP_ERR("Cannot init the Intel DPDK EAL!\n"); + _ODP_ERR("DPDK EAL init failed: %s\n", rte_strerror(rte_errno)); return -1; } else if (i + 1 != dpdk_argc) { _ODP_DBG("Some DPDK args were not processed!\n"); |