Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 00eaffe

Browse files
committed
mtl/ofi: Minor code cleanup.
(cherry picked from commit open-mpi/ompi@404393b)
1 parent fa0c892 commit 00eaffe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ompi/mca/mtl/ofi/mtl_ofi.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "ompi/mca/mtl/base/mtl_base_datatype.h"
3333
#include "ompi/message/message.h"
3434

35-
#include "mtl_ofi.h"
3635
#include "mtl_ofi_types.h"
3736
#include "mtl_ofi_request.h"
3837
#include "mtl_ofi_endpoint.h"
@@ -85,7 +84,7 @@ ompi_mtl_ofi_progress(void)
8584
ret = ofi_req->event_callback(&wc, ofi_req);
8685
if (OMPI_SUCCESS != ret) {
8786
opal_output(ompi_mtl_base_framework.framework_output,
88-
"Error returned by request event callback: %d",
87+
"Error returned by request event callback: %zd",
8988
ret);
9089
abort();
9190
}
@@ -100,7 +99,7 @@ ompi_mtl_ofi_progress(void)
10099
0);
101100
if (ret) {
102101
opal_output(ompi_mtl_base_framework.framework_output,
103-
"Error returned from fi_cq_readerr: %d", ret);
102+
"Error returned from fi_cq_readerr: %zd", ret);
104103
}
105104

106105
assert(error.op_context);
@@ -109,7 +108,7 @@ ompi_mtl_ofi_progress(void)
109108
ret = ofi_req->error_callback(&error, ofi_req);
110109
if (OMPI_SUCCESS != ret) {
111110
opal_output(ompi_mtl_base_framework.framework_output,
112-
"Error returned by request error callback: %d",
111+
"Error returned by request error callback: %zd",
113112
ret);
114113
abort();
115114
}
@@ -683,7 +682,7 @@ ompi_mtl_ofi_imrecv(struct mca_mtl_base_module_t *mtl,
683682
MTL_OFI_RETRY_UNTIL_DONE(fi_trecvmsg(ompi_mtl_ofi.ep, &msg, msgflags));
684683
if (OPAL_UNLIKELY(0 > ret)) {
685684
opal_output_verbose(1, ompi_mtl_base_framework.framework_output,
686-
"%s:%d: unexpected return code from fi_trecvmsg: %s(%zd)",
685+
"%s:%d: fi_trecvmsg failed: %s(%zd)",
687686
__FILE__, __LINE__, fi_strerror(-ret), ret);
688687
return ompi_mtl_ofi_get_error(ret);
689688
}

0 commit comments

Comments
 (0)