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

Added some more verbosity to a warning

This commit is contained in:
Dennis Potter 2018-07-12 17:26:37 +02:00
parent 51c26c0bb1
commit e6b7a668ee

View file

@ -211,7 +211,7 @@ static void * recv_loop(void *ctx)
if (allocated < 0)
error("Failed to allocate %u samples from receive pool.", node->in.vectorize);
else if (allocated < node->in.vectorize)
warn("Receive pool underrun");
warn("Receive pool underrun: allocated only %i of %i samples", allocated, node->in.vectorize);
release = allocated;
@ -219,6 +219,7 @@ static void * recv_loop(void *ctx)
if (recv < 0)
warn("Failed to receive samples from node %s: reason=%d", node_name(node), recv);
io_print(&io, smps, recv);
sample_put_many(smps, release);