From d3bdefef22b8f653eb9a26093e9a498f2da792d8 Mon Sep 17 00:00:00 2001 From: Gaetan Rivet Date: Thu, 20 Dec 2018 18:06:45 +0100 Subject: [PATCH] eal: fix log level of error in option register INFO is not correct when logging an error. Fixes: 2395332798d0 ("eal: add option register infrastructure") Cc: stable@dpdk.org Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/rte_option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/rte_option.c b/lib/librte_eal/common/rte_option.c index ae8a0e2cab..b2c93b2200 100644 --- a/lib/librte_eal/common/rte_option.c +++ b/lib/librte_eal/common/rte_option.c @@ -56,7 +56,7 @@ rte_option_register(struct rte_option *opt) TAILQ_FOREACH(option, &rte_option_list, next) { if (strcmp(opt->name, option->name) == 0) { - RTE_LOG(INFO, EAL, "Option %s has already been registered.\n", + RTE_LOG(ERR, EAL, "Option %s has already been registered.\n", opt->name); return; } -- 2.20.1