Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
damn, there is more of these nasty %lx around there
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 14 Apr 2017 17:13:06 +0000 (19:13 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 14 Apr 2017 17:13:06 +0000 (19:13 +0200)
teshsuite/smpi/macro-partial-shared-communication/macro-partial-shared-communication.c
teshsuite/smpi/macro-partial-shared/macro-partial-shared.c

index afed268..019c38e 100644 (file)
@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
       size_t start = shared_blocks[2*i+1];
       size_t stop = shared_blocks[2*i+2];
       int comm = check_all(buf, start, stop, rank-1);
-      printf("[%d] The result of the (normal) communication check for block (0x%lx, 0x%lx) is: %d\n", rank, start, stop, comm);
+      printf("[%d] The result of the (normal) communication check for block (0x%zx, 0x%zx) is: %d\n", rank, start, stop, comm);
     }
     memset(buf, rank, mem_size);
   }
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
       size_t start = shared_blocks[2*i+1];
       size_t stop = shared_blocks[2*i+2];
       int comm = check_all(buf, start, stop, rank-1);
-      printf("[%d] The result of the (shifted) communication check for block (0x%lx, 0x%lx) is: %d\n", rank, start, stop, comm);
+      printf("[%d] The result of the (shifted) communication check for block (0x%zx, 0x%zx) is: %d\n", rank, start, stop, comm);
     }
   }
 
index 305810e..b783941 100644 (file)
@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
     size_t start = shared_blocks[2*i];
     size_t stop = shared_blocks[2*i+1];
     int is_shared = check_enough(buf, start, stop, 42);
-    printf("[%d] The result of the shared check for block (0x%lx, 0x%lx) is: %d\n", rank, start, stop, is_shared);
+    printf("[%d] The result of the shared check for block (0x%zx, 0x%zx) is: %d\n", rank, start, stop, is_shared);
   }
 
 
@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
     size_t start = shared_blocks[2*i+1];
     size_t stop = shared_blocks[2*i+2];
     int is_private = check_all(buf, start, stop, 0);
-    printf("[%d] The result of the private check for block (0x%lx, 0x%lx) is: %d\n", rank, start, stop, is_private);
+    printf("[%d] The result of the private check for block (0x%zx, 0x%zx) is: %d\n", rank, start, stop, is_private);
   }
 
   SMPI_SHARED_FREE(buf);