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

small cleanup

This commit is contained in:
Steffen Vogel 2015-03-31 16:44:33 +02:00
parent 5502d36ade
commit d50a5b40ff

View file

@ -197,14 +197,16 @@ int path_print(struct path *p, char *buf, int len)
{
*buf = 0;
strap(buf, len, "%s " MAG("=>"), p->in->name);
if (list_length(&p->destinations) > 1) {
strap(buf, len, "%s " MAG("=>") " [", p->in->name);
strap(buf, len " [");
FOREACH(&p->destinations, it)
strap(buf, len, " %s", it->node->name);
strap(buf, len, " ]");
}
else
strap(buf, len, "%s " MAG("=>") " %s", p->in->name, p->out->name);
strap(buf, len, " %s", p->out->name);
return 0;
}