eal: fix log level of error in option register
authorGaetan Rivet <gaetan.rivet@6wind.com>
Thu, 20 Dec 2018 17:06:45 +0000 (18:06 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 15 Jan 2019 01:40:40 +0000 (02:40 +0100)
INFO is not correct when logging an error.

Fixes: 2395332798d0 ("eal: add option register infrastructure")
Cc: stable@dpdk.org
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
lib/librte_eal/common/rte_option.c

index ae8a0e2..b2c93b2 100644 (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;
                }