Skip to content

Commit

Permalink
tools/zep_dispatch: topogen: print list of nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Oct 19, 2023
1 parent abc4c46 commit 39d72fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dist/tools/zep_dispatch/topogen.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,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];

Expand Down

0 comments on commit 39d72fd

Please sign in to comment.