From 39d72fd258b702564479a7813b0d0e4d295129d0 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sat, 7 Oct 2023 16:08:08 +0200 Subject: [PATCH] tools/zep_dispatch: topogen: print list of nodes --- dist/tools/zep_dispatch/topogen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dist/tools/zep_dispatch/topogen.c b/dist/tools/zep_dispatch/topogen.c index 0d3d12010998c..da3272b317b77 100644 --- a/dist/tools/zep_dispatch/topogen.c +++ b/dist/tools/zep_dispatch/topogen.c @@ -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];