git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vhost: fix async callback return type
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_log.c
diff --git
a/lib/librte_eal/common/eal_common_log.c
b/lib/librte_eal/common/eal_common_log.c
index
7647a91
..
8835c8f
100644
(file)
--- a/
lib/librte_eal/common/eal_common_log.c
+++ b/
lib/librte_eal/common/eal_common_log.c
@@
-29,7
+29,7
@@
struct rte_eal_opt_loglevel {
TAILQ_ENTRY(rte_eal_opt_loglevel) next;
/** Compiled regular expression obtained from the option */
regex_t re_match;
TAILQ_ENTRY(rte_eal_opt_loglevel) next;
/** Compiled regular expression obtained from the option */
regex_t re_match;
- /** Glob
match string
option */
+ /** Glob
bing pattern
option */
char *pattern;
/** Log level value obtained from the option */
uint32_t level;
char *pattern;
/** Log level value obtained from the option */
uint32_t level;
@@
-207,7
+207,7
@@
int rte_log_save_regexp(const char *regex, int tmp)
return rte_log_save_level(tmp, regex, NULL);
}
return rte_log_save_level(tmp, regex, NULL);
}
-/* set log level based on glob
(file match)
pattern */
+/* set log level based on glob
bing
pattern */
int
rte_log_set_level_pattern(const char *pattern, uint32_t level)
{
int
rte_log_set_level_pattern(const char *pattern, uint32_t level)
{
@@
-320,7
+320,7
@@
rte_log_register_type_and_pick_level(const char *name, uint32_t level_def)
continue;
if (opt_ll->pattern) {
continue;
if (opt_ll->pattern) {
- if (fnmatch(opt_ll->pattern, name, 0))
+ if (fnmatch(opt_ll->pattern, name, 0)
== 0
)
level = opt_ll->level;
} else {
if (regexec(&opt_ll->re_match, name, 0, NULL, 0) == 0)
level = opt_ll->level;
} else {
if (regexec(&opt_ll->re_match, name, 0, NULL, 0) == 0)