- Update to fix in r21234: as discussed on devel@,
for printing size_t use "%lu" and cast to (unsigned long). This commit was SVN r21238. The following SVN revision numbers were found above: r21234 --> open-mpi/ompi@22b6177fb9
Этот коммит содержится в:
родитель
d5cb1b4f97
Коммит
b2f8095ba7
@ -112,9 +112,9 @@ bool mca_btl_tcp_frag_send(mca_btl_tcp_frag_t* frag, int sd)
|
|||||||
case EWOULDBLOCK:
|
case EWOULDBLOCK:
|
||||||
return false;
|
return false;
|
||||||
case EFAULT:
|
case EFAULT:
|
||||||
BTL_ERROR(("mca_btl_tcp_frag_send: writev error (%p, %zd)\n\t%s(%zd)\n",
|
BTL_ERROR(("mca_btl_tcp_frag_send: writev error (%p, %lu)\n\t%s(%lu)\n",
|
||||||
frag->iov_ptr[0].iov_base, frag->iov_ptr[0].iov_len,
|
frag->iov_ptr[0].iov_base, (unsigned long) frag->iov_ptr[0].iov_len,
|
||||||
strerror(opal_socket_errno), frag->iov_cnt));
|
strerror(opal_socket_errno), (unsigned long) frag->iov_cnt));
|
||||||
mca_btl_tcp_endpoint_close(frag->endpoint);
|
mca_btl_tcp_endpoint_close(frag->endpoint);
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
@ -204,9 +204,9 @@ bool mca_btl_tcp_frag_recv(mca_btl_tcp_frag_t* frag, int sd)
|
|||||||
case EWOULDBLOCK:
|
case EWOULDBLOCK:
|
||||||
return false;
|
return false;
|
||||||
case EFAULT:
|
case EFAULT:
|
||||||
BTL_ERROR(("mca_btl_tcp_frag_recv: readv error (%p, %zd)\n\t%s(%zd)\n",
|
BTL_ERROR(("mca_btl_tcp_frag_recv: readv error (%p, %lu)\n\t%s(%lu)\n",
|
||||||
frag->iov_ptr[0].iov_base, frag->iov_ptr[0].iov_len,
|
frag->iov_ptr[0].iov_base, (unsigned long) frag->iov_ptr[0].iov_len,
|
||||||
strerror(opal_socket_errno), frag->iov_cnt));
|
strerror(opal_socket_errno), (unsigned long) frag->iov_cnt));
|
||||||
mca_btl_tcp_endpoint_close(btl_endpoint);
|
mca_btl_tcp_endpoint_close(btl_endpoint);
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
|
@ -131,8 +131,8 @@ mca_btl_tcp_proc_t* mca_btl_tcp_proc_create(ompi_proc_t* ompi_proc)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if(0 != (size % sizeof(mca_btl_tcp_addr_t))) {
|
if(0 != (size % sizeof(mca_btl_tcp_addr_t))) {
|
||||||
BTL_ERROR(("mca_base_modex_recv: invalid size %zd: btl-size: %ld\n",
|
BTL_ERROR(("mca_base_modex_recv: invalid size %lu: btl-size: %ld\n",
|
||||||
size, sizeof(mca_btl_tcp_addr_t)));
|
(unsigned long) size, sizeof(mca_btl_tcp_addr_t)));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
btl_proc->proc_addr_count = size / sizeof(mca_btl_tcp_addr_t);
|
btl_proc->proc_addr_count = size / sizeof(mca_btl_tcp_addr_t);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user