Skip to content

Commit

Permalink
Print eal param in log
Browse files Browse the repository at this point in the history
Output dpdk eal param into log, so we can get the param that passed
to eal easily. While error occur there, can trace issue through eal
param quickly.

Signed-off-by: Jin Liu <[email protected]>
Signed-off-by: Louis Peens <[email protected]>
  • Loading branch information
liujin3 authored and louis-peens committed Jun 1, 2022
1 parent f3750eb commit b92f825
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dpdk_eal.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ int dpdk_eal_initialize(const struct dpdk_conf *conf)
add_arg(&argv, &argc, buf);
optind = 0;

/* Output eal param into log */
for (i = 0; i < argc; i++)
log_info("dpdk eal param %d: %s", i, argv[i]);

log_info("DPDK version: %s", rte_version());
ret = rte_eal_init(argc, argv);
if (ret < 0) {
Expand Down

0 comments on commit b92f825

Please sign in to comment.