From: Gaetan Rivet Date: Thu, 20 Dec 2018 17:06:45 +0000 (+0100) Subject: eal: fix log level of error in option register X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d3bdefef22b8f653eb9a26093e9a498f2da792d8;p=dpdk.git 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 --- 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; }