Skip to content

Commit d6fb56a

Browse files
committed
Use the correct printf conversion specifier.
1 parent 308bbcb commit d6fb56a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/monitoring/monitoring_prof.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2015 The University of Tennessee and The University
2+
* Copyright (c) 2013-2016 The University of Tennessee and The University
33
* of Tennessee Research Foundation. All rights
44
* reserved.
55
* Copyright (c) 2013-2015 Inria. All rights reserved.
@@ -241,10 +241,10 @@ int write_mat(char * filename, uint64_t * mat, unsigned int dim)
241241
printf("writing %ux%u matrix to %s\n", dim, dim, filename);
242242

243243
for (i = 0; i < comm_world_size; ++i) {
244-
for (j = 0; j < comm_world_size - 1; ++j) {
245-
fprintf(matrix_file, "%lu ", mat[i * comm_world_size + j]);
244+
for (j = 0; j < comm_world_size; ++j) {
245+
fprintf(matrix_file, "%llu ", mat[i * comm_world_size + j]);
246246
}
247-
fprintf(matrix_file, "%lu\n", mat[i * comm_world_size + j]);
247+
fprintf(matrix_file, "\n");
248248
}
249249
fflush(matrix_file);
250250
fclose(matrix_file);

0 commit comments

Comments
 (0)