Skip to content

Commit

Permalink
Correct log message
Browse files Browse the repository at this point in the history
  • Loading branch information
alesliehughes committed Jun 20, 2010
1 parent f18a0bf commit b899330
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libdrqueue/communications.c
Expand Up @@ -290,19 +290,19 @@ check_send_datasize (int sfd, uint32_t datasize) {

localsize = htonl(datasize);
if (!dr_socket_write(sfd,(char*)&localsize,sizeof(uint32_t))) {
log_auto (L_ERROR,"check_recv_datasize(): communications problem. Could not write to socket or file. (%s)",strerror(errno));
log_auto (L_ERROR,"check_send_datasize(): communications problem. Could not write to socket or file. (%s)",strerror(errno));
return 0;
}
if (!dr_socket_read(sfd,(char*)&remotesize,sizeof(uint32_t))) {
log_auto (L_ERROR,"check_recv_datasize(): communications problem. Could not read from socket or file. (%s)",strerror(errno));
log_auto (L_ERROR,"check_send_datasize(): communications problem. Could not read from socket or file. (%s)",strerror(errno));
return 0;
}
remotesize = ntohl(remotesize);

if (datasize != remotesize) {
log_auto (L_ERROR,"check_recv_datasize(): remote and local sizes for data are different.");
log_auto (L_ERROR,"check_recv_datasize(): if you are using different versions of the software please, update older ones.");
log_auto (L_ERROR,"check_recv_datasize(): if not this is probably a BUG. Check if it's has been reported.");
log_auto (L_ERROR,"check_send_datasize(): remote and local sizes for data are different.");
log_auto (L_ERROR,"check_send_datasize(): if you are using different versions of the software please, update older ones.");
log_auto (L_ERROR,"check_send_datasize(): if not this is probably a BUG. Check if it's has been reported.");
return 0;
}

Expand Down

0 comments on commit b899330

Please sign in to comment.