[dpdk-dev] [PATCH v5 2/4] eal: add function to release internal resources
Thomas Monjalon
thomas at monjalon.net
Mon Jan 29 19:20:14 CET 2018
29/01/2018 17:37, Harry van Haaren:
> @@ -79,6 +80,10 @@ rte_exit(int exit_code, const char *format, ...)
> va_end(ap);
>
> #ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR
> + int ret = rte_eal_cleanup();
You should not declare a variable in the middle of the function.
Will fix on apply.
> + if (ret)
> + RTE_LOG(CRIT, EAL,
> + "EAL could not release all resources, code %d\n", ret);
> exit(exit_code);
> #else
> rte_dump_stack();
More information about the dev
mailing list