diff --git a/ompi/mca/btl/tcp/btl_tcp_frag.c b/ompi/mca/btl/tcp/btl_tcp_frag.c index 80a50175e2..b6e7713914 100644 --- a/ompi/mca/btl/tcp/btl_tcp_frag.c +++ b/ompi/mca/btl/tcp/btl_tcp_frag.c @@ -112,7 +112,7 @@ bool mca_btl_tcp_frag_send(mca_btl_tcp_frag_t* frag, int sd) case EWOULDBLOCK: return false; case EFAULT: - BTL_ERROR(("mca_btl_tcp_frag_send: writev error (%p, %d)\n\t%s(%d)\n", + BTL_ERROR(("mca_btl_tcp_frag_send: writev error (%p, %zd)\n\t%s(%zd)\n", frag->iov_ptr[0].iov_base, frag->iov_ptr[0].iov_len, strerror(opal_socket_errno), frag->iov_cnt)); mca_btl_tcp_endpoint_close(frag->endpoint); @@ -204,7 +204,7 @@ bool mca_btl_tcp_frag_recv(mca_btl_tcp_frag_t* frag, int sd) case EWOULDBLOCK: return false; case EFAULT: - BTL_ERROR(("mca_btl_tcp_frag_recv: readv error (%p, %d)\n\t%s(%d)\n", + BTL_ERROR(("mca_btl_tcp_frag_recv: readv error (%p, %zd)\n\t%s(%zd)\n", frag->iov_ptr[0].iov_base, frag->iov_ptr[0].iov_len, strerror(opal_socket_errno), frag->iov_cnt)); mca_btl_tcp_endpoint_close(btl_endpoint); diff --git a/ompi/mca/btl/tcp/btl_tcp_proc.c b/ompi/mca/btl/tcp/btl_tcp_proc.c index 02fe5be36a..533f4d84b8 100644 --- a/ompi/mca/btl/tcp/btl_tcp_proc.c +++ b/ompi/mca/btl/tcp/btl_tcp_proc.c @@ -131,7 +131,7 @@ mca_btl_tcp_proc_t* mca_btl_tcp_proc_create(ompi_proc_t* ompi_proc) return NULL; } if(0 != (size % sizeof(mca_btl_tcp_addr_t))) { - BTL_ERROR(("mca_base_modex_recv: invalid size %d: btl-size: %d\n", + BTL_ERROR(("mca_base_modex_recv: invalid size %zd: btl-size: %ld\n", size, sizeof(mca_btl_tcp_addr_t))); return NULL; }