Skip to content

Commit e6596d7

Browse files
teburdcarlescufi
authored andcommitted
rtio: Drop stray printks in API test
Noticed the tests were a bit verbose, saw a few stray printks. Drop those as they aren't really needed and potentially cause testing issues, printk is a potential synchronization point. Signed-off-by: Tom Burdick <[email protected]>
1 parent 2f9945f commit e6596d7

File tree

1 file changed

+0
-3
lines changed
  • tests/subsys/rtio/rtio_api/src

1 file changed

+0
-3
lines changed

tests/subsys/rtio/rtio_api/src/main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ static void t1_consume(void *p1, void *p2, void *p3)
167167
if (val != NULL) {
168168
rtio_spsc_release(ezspsc);
169169
} else {
170-
printk("consumer yield\n");
171170
k_yield();
172171
}
173172
}
@@ -182,7 +181,6 @@ static void t2_produce(void *p1, void *p2, void *p3)
182181
for (int i = 0; i < SMP_ITERATIONS; i++) {
183182
val = NULL;
184183
retries = 0;
185-
printk("producer acquiring\n");
186184
while (val == NULL && retries < MAX_RETRIES) {
187185
val = rtio_spsc_acquire(ezspsc);
188186
retries++;
@@ -191,7 +189,6 @@ static void t2_produce(void *p1, void *p2, void *p3)
191189
*val = SMP_ITERATIONS;
192190
rtio_spsc_produce(ezspsc);
193191
} else {
194-
printk("producer yield\n");
195192
k_yield();
196193
}
197194
}

0 commit comments

Comments
 (0)