1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

socket: show reason for invalid packets

This commit is contained in:
Steffen Vogel 2017-06-27 08:49:23 +00:00
parent ff07a7bcb3
commit 50cc0a99a0

View file

@ -399,7 +399,7 @@ static int socket_read_villas(struct node *n, struct sample *smps[], unsigned cn
ret = msg_buffer_to_samples(smps, cnt, bufptr, bytes);
if (ret < 0)
warn("Received invalid packet from node: %s", node_name(n));
warn("Received invalid packet from node: %s reason=%d", node_name(n), ret);
return ret;
}