tests: use signed printf format
[model-checker.git] / test / releaseseq.c
index cbb8ef5630111d651788729c75897a845983167c..a63fa93620bb3601e6dbded7f8cff0e6fe92ebfb 100644 (file)
@@ -5,10 +5,10 @@
  */
 
 #include <stdio.h>
-
 #include <threads.h>
+#include <stdatomic.h>
+
 #include "librace.h"
-#include "stdatomic.h"
 
 atomic_int x;
 int var = 0;
@@ -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));
 }