Lines Matching +full:3 +full:d
64 { .source = "xxx", .clevel = 3, .rlevel = 3},
72 { .source = "yyy2", .clevel = 3, .rlevel = 3},
78 { .source = "xxx", .clevel = 3, .rlevel = 3},
128 "Unexpected number of domains (%d)", domains_cnt); in ZTEST()
144 for (uint8_t d = 0; d < log_domains_count(); d++) { in ZTEST() local
145 uint16_t source_cnt = log_src_cnt_get(d); in ZTEST()
147 zassert_equal(source_cnt, exp_source_cnt[d], in ZTEST()
148 "Unexpected source count (%d:%d)", d, source_cnt); in ZTEST()
152 static void test_single_compile_level(uint8_t d, uint16_t s, uint32_t exp_level) in test_single_compile_level() argument
154 uint32_t level = log_filter_get(NULL, d, s, false); in test_single_compile_level()
157 "%d:%d Unexpected compiled level (%d vs %d)", in test_single_compile_level()
158 d, s, level, exp_level); in test_single_compile_level()
167 test_single_compile_level(1, 3, domains_a[0]->sources[3].clevel); in ZTEST()
169 test_single_compile_level(3, 2, domains_b[0]->sources[2].clevel); in ZTEST()
172 static void test_single_runtime_level(uint8_t d, uint16_t s, uint8_t *link_level) in test_single_runtime_level() argument
177 level1 = log_filter_get(&backend1, d, s, true); in test_single_runtime_level()
178 level2 = log_filter_get(&backend2, d, s, true); in test_single_runtime_level()
180 "%d:%d Unexpected compiled level (%d vs %d)", in test_single_runtime_level()
181 d, s, level1, *link_level); in test_single_runtime_level()
183 "%d:%d Unexpected compiled level (%d vs %d)", in test_single_runtime_level()
184 d, s, level2, MIN(*link_level, LOG_LEVEL_INF)); in test_single_runtime_level()
186 log_filter_set(&backend1, d, s, 1); in test_single_runtime_level()
187 log_filter_set(&backend2, d, s, 2); in test_single_runtime_level()
188 level1 = log_filter_get(&backend1, d, s, true); in test_single_runtime_level()
189 level2 = log_filter_get(&backend2, d, s, true); in test_single_runtime_level()
190 zassert_equal(level1, 1, "%d:%d Unexpected compiled level (%d vs %d)", in test_single_runtime_level()
191 d, s, level1, 1); in test_single_runtime_level()
192 zassert_equal(level2, 2, "%d:%d Unexpected compiled level (%d vs %d)", in test_single_runtime_level()
193 d, s, level2, 2); in test_single_runtime_level()
197 "%d:%d Unexpected compiled level (got:%d exp:%d)", in test_single_runtime_level()
198 d, s, *link_level, 2); in test_single_runtime_level()
207 test_single_runtime_level(1, 3, &domains_a[0]->sources[3].rlevel); in ZTEST()
209 test_single_runtime_level(3, 1, &domains_b[0]->sources[1].rlevel); in ZTEST()
220 zassert_equal(strcmp(log_domain_name_get(3), "domain3"), 0, in ZTEST()
221 "Unexpected domain name (%s)", log_domain_name_get(3)); in ZTEST()
224 static void test_single_log_source_name_get(uint8_t d, uint16_t s, in test_single_log_source_name_get() argument
227 const char *name = log_source_name_get(d, s); in test_single_log_source_name_get()
229 zassert_equal(strcmp(name, exp_name), 0, "%d:%d Unexpected source name", in test_single_log_source_name_get()
230 d, s); in test_single_log_source_name_get()
240 test_single_log_source_name_get(3, 3, domains_b[0]->sources[3].source); in ZTEST()