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

Changed debug flag in node.c from LOG_NODES to LOG_NODE

Fixes #184.
This commit is contained in:
Dennis Potter 2018-07-24 10:42:35 +02:00
parent f14ae5a9ef
commit 6b93b8839e

View file

@ -464,11 +464,11 @@ int node_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *rel
stats_update(n->stats, STATS_SKIPPED, skipped);
}
debug(LOG_NODES | 5, "Received %u samples from node %s of which %d have been skipped", nread, node_name(n), skipped);
debug(LOG_NODE | 5, "Received %u samples from node %s of which %d have been skipped", nread, node_name(n), skipped);
return rread;
#else
debug(LOG_NODES | 5, "Received %u samples from node %s", nread, node_name(n));
debug(LOG_NODE | 5, "Received %u samples from node %s", nread, node_name(n));
return nread;
#endif /* WITH_HOOKS */
@ -496,7 +496,7 @@ int node_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *re
return sent;
nsent += sent;
debug(LOG_NODES | 5, "Sent %u samples to node %s", sent, node_name(n));
debug(LOG_NODE | 5, "Sent %u samples to node %s", sent, node_name(n));
}
}
else {
@ -504,7 +504,7 @@ int node_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *re
if (nsent < 0)
return nsent;
debug(LOG_NODES | 5, "Sent %u samples to node %s", nsent, node_name(n));
debug(LOG_NODE | 5, "Sent %u samples to node %s", nsent, node_name(n));
}
return nsent;