src/dpdk/lib/librte_eal/common/eal_common_log.c
int
rte_log_set_level_pattern(const char *pattern, uint32_t level)
{
	size_t i;

	if (level > RTE_LOG_DEBUG)
		return -1;

	for (i = 0; i < rte_logs.dynamic_types_len; i++) {
		if (rte_logs.dynamic_types[i].name == NULL)
			continue;

		if (fnmatch(pattern, rte_logs.dynamic_types[i].name, 0) == 0)
			rte_logs.dynamic_types[i].loglevel = level;
	}

	return 0;
}
/* set log level based on globbing pattern */
set log level based on globbing pattern
set log level based on globbing pattern
int
rte_log_set_level_pattern(const char *pattern, uint32_t level)
{
	size_t i;
	if (level > RTE_LOG_DEBUG)
		return -1;
	for (i = 0; i < rte_logs.dynamic_types_len; i++) {
		if (rte_logs.dynamic_types[i].name == NULL)
			continue;
		if (fnmatch(pattern, rte_logs.dynamic_types[i].name, 0) == 0)
			rte_logs.dynamic_types[i].loglevel = level;
	}
	return 0;
}
int rte_log_set_level_pattern ( const char * pattern , uint32_t level ) { size_t i ; if ( level > RTE_LOG_DEBUG ) return -1 ; for ( i = 0 ; i < rte_logs . dynamic_types_len ; i ++ ) { if ( rte_logs . dynamic_types [ i ] . name == NULL ) continue ; if ( fnmatch ( pattern , rte_logs . dynamic_types [ i ] . name , 0 ) == 0 ) rte_logs . dynamic_types [ i ] . loglevel = level ; } return 0 ; }
set log level based on globbing pattern
set log level based on globbing pattern