Better error message

This commit is contained in:
Denis 2023-12-13 02:21:31 +01:00
parent 29f67daddd
commit 0877790cfb
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -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;
}