1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tools/zep_dispatch: topogen: print list of nodes

This commit is contained in:
Benjamin Valentin 2023-10-07 16:08:08 +02:00
parent 2e19c2d712
commit f7e6a4ada2

View File

@ -192,6 +192,12 @@ static void _print_distance(struct node *nodes, unsigned num, bool recursive, bo
{
struct node *start = nodes;
if (recursive) {
for (unsigned i = 0; i < num; ++i) {
printf("%s\n", nodes[i].name);
}
}
for (unsigned i = 1; i < num; ++i) {
struct node *n = &nodes[i];