Skip to content

Commit 2410275

Browse files
committed
monitoring test: fix printf warning
Signed-off-by: Jeff Squyres <[email protected]>
1 parent 2c5b397 commit 2410275

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/monitoring/monitoring_prof.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* reserved.
55
* Copyright (c) 2013-2015 Inria. All rights reserved.
66
* Copyright (c) 2013-2015 Bull SAS. All rights reserved.
7+
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
78
* $COPYRIGHT$
89
*
910
* Additional copyrights may follow
@@ -36,6 +37,7 @@ writing 4x4 matrix to monitoring_avg.mat
3637
#include <mpi.h>
3738
#include <string.h>
3839
#include <stdint.h>
40+
#include <inttypes.h>
3941

4042
static MPI_T_pvar_session session;
4143
static int comm_world_size;
@@ -242,7 +244,7 @@ int write_mat(char * filename, uint64_t * mat, unsigned int dim)
242244

243245
for (i = 0; i < comm_world_size; ++i) {
244246
for (j = 0; j < comm_world_size; ++j) {
245-
fprintf(matrix_file, "%llu ", mat[i * comm_world_size + j]);
247+
fprintf(matrix_file, "%" PRIu64 " ", mat[i * comm_world_size + j]);
246248
}
247249
fprintf(matrix_file, "\n");
248250
}

0 commit comments

Comments
 (0)