Skip to content

Commit 2714399

Browse files
committed
Fix spurious output introduced in PR #493
1 parent 8ef32a8 commit 2714399

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/mpi/mpi_caf.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* One-sided MPI implementation of Libcaf
2-
*
2+
*
33
* Copyright (c) 2012-2018, Sourcery, Inc.
44
* All rights reserved.
5-
*
5+
*
66
* Redistribution and use in source and binary forms, with or without
77
* modification, are permitted provided that the following conditions are met:
88
* * Redistributions of source code must retain the above copyright
@@ -13,7 +13,7 @@
1313
* * Neither the name of the Sourcery, Inc., nor the
1414
* names of its contributors may be used to endorse or promote products
1515
* derived from this software without specific prior written permission.
16-
*
16+
*
1717
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1818
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1919
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -5659,7 +5659,7 @@ PREFIX(send_by_ref) (caf_token_t token, int image_index,
56595659
const char nonallocextentmismatch[] =
56605660
"libcaf_mpi::caf_send_by_ref(): "
56615661
"extent of non-allocatable arrays mismatch (%lu != %lu).\n";
5662-
5662+
56635663
size_t size, i, ref_rank = 0, src_index, dst_size;
56645664
int dst_rank = -1, src_cur_dim = 0, ierr;
56655665
mpi_caf_token_t *mpi_token = (mpi_caf_token_t *) token;
@@ -5689,11 +5689,12 @@ PREFIX(send_by_ref) (caf_token_t token, int image_index,
56895689

56905690
check_image_health(image_index, stat);
56915691

5692-
dprint("Entering send_by_ref(may_require_tmp = %d", may_require_tmp);
56935692
#ifdef GCC_GE_8
5694-
fprintf(stderr, ", dst_type = %d", dst_type);
5693+
dprint("Entering send_by_ref(may_require_tmp = %d, dst_type = %d)\n",
5694+
may_require_tmp, dst_type);
5695+
#else
5696+
dprint("Entering send_by_ref(may_require_tmp = %d)\n", may_require_tmp);
56955697
#endif
5696-
fprintf(stderr, ").\n");
56975698

56985699
/* Compute the size of the result. In the beginning size just counts the
56995700
* number of elements. */
@@ -8211,4 +8212,4 @@ void PREFIX(sync_team) (caf_team_t *team , int unused __attribute__((unused)))
82118212
"or ancestor, or descendant");
82128213

82138214
int ierr = MPI_Barrier(*tmp_comm); chk_err(ierr);
8214-
}
8215+
}

0 commit comments

Comments
 (0)