Better error message
This commit is contained in:
parent
29f67daddd
commit
0877790cfb
1 changed files with 1 additions and 1 deletions
|
|
@ -352,7 +352,7 @@ void *dev_out_thread_func(void *ptr) {
|
|||
if (in_message_pipe_read_res == sizeof(in_message_t)) {
|
||||
handle_incoming_message(&incoming_message, &dev_out->dev_stats);
|
||||
} else {
|
||||
fprintf(stderr, "Error reading from in_message_pipe_fd: got %zu bytes, expected %zu butes\n", in_message_pipe_read_res, sizeof(in_message_t));
|
||||
fprintf(stderr, "Error reading from socket number %d: got %zu bytes, expected %zu butes\n", i, in_message_pipe_read_res, sizeof(in_message_t));
|
||||
close(dev_out->communication.endpoint.ssocket.clients[i]);
|
||||
dev_out->communication.endpoint.ssocket.clients[i] = -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue