git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f87471c
)
eal: fix log level of error in option register
author
Gaetan Rivet
<gaetan.rivet@6wind.com>
Thu, 20 Dec 2018 17:06:45 +0000
(18:06 +0100)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/lib/librte_eal/common/rte_option.c
b/lib/librte_eal/common/rte_option.c
index
ae8a0e2
..
b2c93b2
100644
(file)
--- 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;
}