@@ -33,8 +33,8 @@ void z_log_runtime_filters_init(void)
3333 * compile-time level. When backends are attached later on in
3434 * log_init(), they'll be initialized to the same value.
3535 */
36- for (int i = 0 ; i < log_sources_count (); i ++ ) {
37- uint32_t * filters = log_dynamic_filters_get (i );
36+ for (int i = 0 ; i < z_log_sources_count (); i ++ ) {
37+ uint32_t * filters = z_log_dynamic_filters_get (i );
3838 uint8_t level = log_compiled_level_get (i );
3939
4040 LOG_FILTER_SLOT_SET (filters ,
@@ -45,7 +45,7 @@ void z_log_runtime_filters_init(void)
4545
4646uint32_t log_src_cnt_get (uint32_t domain_id )
4747{
48- return log_sources_count ();
48+ return z_log_sources_count ();
4949}
5050
5151/** @brief Get name of the log source.
@@ -60,7 +60,7 @@ static inline const char *log_name_get(uint32_t source_id)
6060
6161const char * log_source_name_get (uint32_t domain_id , uint32_t src_id )
6262{
63- return src_id < log_sources_count () ? log_name_get (src_id ) : NULL ;
63+ return src_id < z_log_sources_count () ? log_name_get (src_id ) : NULL ;
6464}
6565
6666static uint32_t max_filter_get (uint32_t filters )
@@ -84,12 +84,12 @@ uint32_t z_impl_log_filter_set(struct log_backend const *const backend,
8484 uint32_t domain_id , int16_t source_id ,
8585 uint32_t level )
8686{
87- __ASSERT_NO_MSG (source_id < log_sources_count ());
87+ __ASSERT_NO_MSG (source_id < z_log_sources_count ());
8888
8989 if (IS_ENABLED (CONFIG_LOG_RUNTIME_FILTERING )) {
9090 uint32_t new_aggr_filter ;
9191
92- uint32_t * filters = log_dynamic_filters_get (source_id );
92+ uint32_t * filters = z_log_dynamic_filters_get (source_id );
9393
9494 if (backend == NULL ) {
9595 struct log_backend const * iter_backend ;
@@ -139,7 +139,7 @@ uint32_t z_vrfy_log_filter_set(struct log_backend const *const backend,
139139 "Setting per-backend filters from user mode is not supported" ));
140140 Z_OOPS (Z_SYSCALL_VERIFY_MSG (domain_id == CONFIG_LOG_DOMAIN_ID ,
141141 "Invalid log domain_id" ));
142- Z_OOPS (Z_SYSCALL_VERIFY_MSG (src_id < log_sources_count (),
142+ Z_OOPS (Z_SYSCALL_VERIFY_MSG (src_id < z_log_sources_count (),
143143 "Invalid log source id" ));
144144 Z_OOPS (Z_SYSCALL_VERIFY_MSG (
145145 (level <= LOG_LEVEL_DBG ),
@@ -154,7 +154,7 @@ static void backend_filter_set(struct log_backend const *const backend,
154154 uint32_t level )
155155{
156156 if (IS_ENABLED (CONFIG_LOG_RUNTIME_FILTERING )) {
157- for (int i = 0 ; i < log_sources_count (); i ++ ) {
157+ for (int i = 0 ; i < z_log_sources_count (); i ++ ) {
158158 log_filter_set (backend , CONFIG_LOG_DOMAIN_ID , i , level );
159159 }
160160 }
@@ -185,14 +185,14 @@ void log_backend_disable(struct log_backend const *const backend)
185185uint32_t log_filter_get (struct log_backend const * const backend ,
186186 uint32_t domain_id , int16_t source_id , bool runtime )
187187{
188- __ASSERT_NO_MSG (source_id < log_sources_count ());
188+ __ASSERT_NO_MSG (source_id < z_log_sources_count ());
189189
190190 if (IS_ENABLED (CONFIG_LOG_RUNTIME_FILTERING ) && runtime ) {
191191 if (source_id < 0 ) {
192192 return LOG_LEVEL_DBG ;
193193 }
194194
195- uint32_t * filters = log_dynamic_filters_get (source_id );
195+ uint32_t * filters = z_log_dynamic_filters_get (source_id );
196196
197197 return LOG_FILTER_SLOT_GET (filters ,
198198 log_backend_id_get (backend ));
0 commit comments