From 1f86a136ebd70d65595fafa5cb238454fb8bfcf4 Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Fri, 24 Jan 2025 14:58:54 +0100 Subject: [PATCH] Rename --- proto/aggregator/aggregator.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index 03290575d..a60de6c95 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -899,6 +899,12 @@ dump_trie_helper(const struct trie_node *node, struct net_addr_ip4 *addr, struct assert(node != NULL); assert(addr != NULL); + static const char *px_origin_str[] = { + [ORIGINAL] = "original", + [AGGREGATED] = "aggregated", + [FILLER] = "filler", + }; + memset(buf->start, 0, buf->pos - buf->start); buf->pos = buf->start; @@ -930,13 +936,7 @@ dump_trie_helper(const struct trie_node *node, struct net_addr_ip4 *addr, struct if (node->selected_bucket) buffer_print(buf, " -> [[%u]]", node->selected_bucket->id); - static const char *origin_str[] = { - [ORIGINAL] = "original", - [AGGREGATED] = "aggregated", - [FILLER] = "filler", - }; - - buffer_print(buf, " %p %s", node, origin_str[node->px_origin]); + buffer_print(buf, " %p %s", node, px_origin_str[node->px_origin]); log("%s", buf->start); if (node->child[0]) -- 2.47.2