From: Martin Quinson Date: Fri, 14 Apr 2017 17:13:06 +0000 (+0200) Subject: damn, there is more of these nasty %lx around there X-Git-Tag: v3.16~349 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1df107fd37fa0d90a495bc0d51dc2d957d4d0de0 damn, there is more of these nasty %lx around there --- diff --git a/teshsuite/smpi/macro-partial-shared-communication/macro-partial-shared-communication.c b/teshsuite/smpi/macro-partial-shared-communication/macro-partial-shared-communication.c index afed268325..019c38e3af 100644 --- a/teshsuite/smpi/macro-partial-shared-communication/macro-partial-shared-communication.c +++ b/teshsuite/smpi/macro-partial-shared-communication/macro-partial-shared-communication.c @@ -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); } } diff --git a/teshsuite/smpi/macro-partial-shared/macro-partial-shared.c b/teshsuite/smpi/macro-partial-shared/macro-partial-shared.c index 305810ecc9..b783941753 100644 --- a/teshsuite/smpi/macro-partial-shared/macro-partial-shared.c +++ b/teshsuite/smpi/macro-partial-shared/macro-partial-shared.c @@ -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);