eal: fix log level of error in option register

INFO is not correct when logging an error.

Fixes: 2395332798 ("eal: add option register infrastructure")
Cc: stable@dpdk.org

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
This commit is contained in:
Gaetan Rivet 2018-12-20 18:06:45 +01:00 committed by Thomas Monjalon
parent f87471c3f1
commit d3bdefef22

View File

@ -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;
}