X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Freleaseseq.c;h=548f0a822380ae19640cb30197d7ac6e1209fde4;hb=b2f34d7f1d030f414786ea0b1a5709dcac604c7b;hp=c4e2c17a22cd344eee0f75c6bd27f14f195a34af;hpb=a64ca6ed8ef09fb2a974d44315404075cbf365fe;p=c11tester.git diff --git a/test/releaseseq.c b/test/releaseseq.c index c4e2c17a..548f0a82 100644 --- a/test/releaseseq.c +++ b/test/releaseseq.c @@ -23,7 +23,7 @@ static void a(void *obj) static void b(void *obj) { int r = atomic_load_explicit(&x, memory_order_acquire); - printf("r = %u\n", r); + printf("r = %d\n", r); printf("load %d\n", load_32(&var)); } @@ -38,7 +38,7 @@ int user_main(int argc, char **argv) atomic_init(&x, 0); - printf("Thread %d: creating 3 threads\n", thrd_current()); + printf("Main thread: creating 3 threads\n"); thrd_create(&t1, (thrd_start_t)&a, NULL); thrd_create(&t2, (thrd_start_t)&b, NULL); thrd_create(&t3, (thrd_start_t)&c, NULL); @@ -46,7 +46,7 @@ int user_main(int argc, char **argv) thrd_join(t1); thrd_join(t2); thrd_join(t3); - printf("Thread %d is finished\n", thrd_current()); + printf("Main thread is finished\n"); return 0; }