Thread (133 messages) 133 messages, 14 authors, 2024-09-25

Re: [dpdk-dev] [PATCH 05/11] eal: introduce maximum log level macro

From: Thomas Monjalon <hidden>
Date: 2021-03-10 12:46:31

10/03/2021 00:31, Thomas Monjalon:
quoted hunk ↗ jump to hunk
--- a/lib/librte_eal/common/eal_common_options.c
+++ b/lib/librte_eal/common/eal_common_options.c
@@ -1249,7 +1249,7 @@ eal_parse_log_priority(const char *level)
 		return -1;
 
 	/* look for named values, skip 0 which is not a valid level */
-	for (i = 1; i < RTE_DIM(levels); i++) {
+	for (i = 1; i < RTE_LOG_MAX; i++) {
Bug: it should be <=


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help