From 2410275a73156653bd4cbd89d7d7aabd6c4e2fb0 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 25 Mar 2016 14:59:21 -0700 Subject: [PATCH] monitoring test: fix printf warning Signed-off-by: Jeff Squyres --- test/monitoring/monitoring_prof.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/monitoring/monitoring_prof.c b/test/monitoring/monitoring_prof.c index be9e0d8198..946f690a3a 100644 --- a/test/monitoring/monitoring_prof.c +++ b/test/monitoring/monitoring_prof.c @@ -4,6 +4,7 @@ * reserved. * Copyright (c) 2013-2015 Inria. All rights reserved. * Copyright (c) 2013-2015 Bull SAS. All rights reserved. + * Copyright (c) 2016 Cisco Systems, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -36,6 +37,7 @@ writing 4x4 matrix to monitoring_avg.mat #include #include #include +#include static MPI_T_pvar_session session; static int comm_world_size; @@ -242,7 +244,7 @@ int write_mat(char * filename, uint64_t * mat, unsigned int dim) for (i = 0; i < comm_world_size; ++i) { for (j = 0; j < comm_world_size; ++j) { - fprintf(matrix_file, "%llu ", mat[i * comm_world_size + j]); + fprintf(matrix_file, "%" PRIu64 " ", mat[i * comm_world_size + j]); } fprintf(matrix_file, "\n"); }