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:
parent
2e19c2d712
commit
f7e6a4ada2
6
dist/tools/zep_dispatch/topogen.c
vendored
6
dist/tools/zep_dispatch/topogen.c
vendored
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user