X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=test%2Fuserprog.c;h=b75947e226a284f940ded9975191f8c8a51c4fa2;hp=cbd58ee810960eb9caaccc6458e6578d95148df0;hb=e9054c67ca7c2f2b577a70396de09b874d9a0fc0;hpb=a64ca6ed8ef09fb2a974d44315404075cbf365fe diff --git a/test/userprog.c b/test/userprog.c index cbd58ee..b75947e 100644 --- a/test/userprog.c +++ b/test/userprog.c @@ -11,14 +11,14 @@ static void a(void *obj) { int r1=atomic_load_explicit(&y, memory_order_relaxed); atomic_store_explicit(&x, r1, memory_order_relaxed); - printf("r1=%u\n",r1); + printf("r1=%d\n",r1); } static void b(void *obj) { int r2=atomic_load_explicit(&x, memory_order_relaxed); atomic_store_explicit(&y, 42, memory_order_relaxed); - printf("r2=%u\n",r2); + printf("r2=%d\n",r2); } int user_main(int argc, char **argv)