1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/events: s/printf/puts/ where applicable

This commit is contained in:
Hauke Petersen 2018-01-09 15:24:36 +01:00
parent 6c55b36943
commit 36743c17a1

View File

@ -71,7 +71,7 @@ static void timed_callback(void *arg)
uint32_t now = xtimer_now_usec();
assert((now - before >= 100000LU));
printf("triggered timed callback with arg 0x%08x after %" PRIu32 "us\n", (unsigned)arg, now - before);
printf("[SUCCESS]\n");
puts("[SUCCESS]");
}
static void forbidden_callback(void *arg)
@ -98,12 +98,12 @@ int main(void)
printf("canceling 0x%08x\n", (unsigned)&event2);
event_cancel(&queue, &event2);
printf("posting custom event\n");
puts("posting custom event");
event_post(&queue, (event_t *)&custom_event);
event_timeout_t event_timeout;
printf("posting timed callback with timeout 1sec\n");
puts("posting timed callback with timeout 1sec");
event_timeout_init(&event_timeout, &queue, (event_t *)&event_callback);
before = xtimer_now_usec();
event_timeout_set(&event_timeout, 100000LU);
@ -116,7 +116,7 @@ int main(void)
event_timeout_set(&event_timeout_canceled, 500 * US_PER_MS);
event_timeout_clear(&event_timeout_canceled);
printf("launching event queue\n");
puts("launching event queue");
event_loop(&queue);
return 0;