diff --git a/dist/tools/zep_dispatch/topogen.c b/dist/tools/zep_dispatch/topogen.c index 6a22c45256..293624ed6e 100644 --- a/dist/tools/zep_dispatch/topogen.c +++ b/dist/tools/zep_dispatch/topogen.c @@ -13,6 +13,10 @@ #include #include +#ifndef CONFIG_USE_NUMERIC_NAMES +#define CONFIG_USE_NUMERIC_NAMES 1 +#endif + struct node { char name[8]; int x; @@ -80,6 +84,11 @@ static double node_distance_weight(const struct node *a, const struct node *b) static void node_name(struct node *n, unsigned idx) { + if (CONFIG_USE_NUMERIC_NAMES) { + snprintf(n->name, sizeof(n->name), "n%03u", (uint16_t)idx + 1); + return; + } + char *s = n->name; const char *end = s + sizeof(n->name) - 1;