1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

Merge pull request #1089 from BytesGalore/fix_test_cooperation_warnings

test:test_thread_cooperation fixed warnings on Wformat
This commit is contained in:
Christian Mehlis 2014-05-02 14:22:15 +02:00
commit 33fde07e4a

View File

@ -42,7 +42,7 @@ void run(void)
printf("I am alive (%d)\n", me);
msg_t arg;
err = msg_receive(&arg);
printf("Thread %d has arg %d\n", me, arg.content.value);
printf("Thread %d has arg %" PRIu32 "\n", me, arg.content.value);
err = mutex_lock(&mtx);
@ -73,7 +73,7 @@ int main(void)
printf("[!!!] mutex_init failed with %d\n", err);
}
printf("Problem: %" PRIu32 "\n", PROBLEM);
printf("Problem: %d\n", PROBLEM);
msg_t args[PROBLEM];
@ -97,10 +97,10 @@ int main(void)
for (int i = 0; i < PROBLEM; ++i) {
msg_t msg;
msg_receive(&msg);
printf("Reveiced message %d from thread %d\n", i, msg.content.value);
printf("Reveiced message %d from thread %" PRIu32 "\n", i, msg.content.value);
}
printf("Factorial: %" PRIu32 "\n", storage);
printf("Factorial: %d\n", storage);
if (storage != 479001600) {
puts("[!!!] Error, expected: 12!= 479001600.");