tests/subsys/logging/log_core/src/log_core_test.c
/**
 * @brief Function for finding source ID based on source name.
 *
 * @param name Source name
 *
 * @return Source ID.
 */
@brief Function for finding source ID based on source name.
@param name Source name

@return Source ID.
@brief Function for finding source ID based on source name . @param name Source name @return Source ID .
static int log_source_id_get(const char *name)
{
	for (int i = 0; i < log_src_cnt_get(CONFIG_LOG_DOMAIN_ID); i++) {
		if (strcmp(log_source_name_get(CONFIG_LOG_DOMAIN_ID, i), name)
		    == 0) {
			return i;
		}
	}
	return -1;
}
static int log_source_id_get ( const char * name ) { for ( int i = 0 ; i < log_src_cnt_get ( CONFIG_LOG_DOMAIN_ID ) ; i ++ ) { if ( strcmp ( log_source_name_get ( CONFIG_LOG_DOMAIN_ID , i ) , name ) == 0 ) { return i ; } } return -1 ; }
@brief Function for finding source ID based on source name.
@brief Function for finding source ID based on source name .