[RFC PATCH 10/20] show symbol flags in dump filter all

Asbjørn Sloth Tønnesen ast at 2e8.dk
Mon Dec 30 17:56:36 CET 2019


---
 filter/filter.c | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/filter/filter.c b/filter/filter.c
index 2e3ae8ba..3e9660f8 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -486,13 +486,17 @@ void filters_dump_all(void)
   WALK_LIST(sym, config->symbols) {
     switch (sym->class) {
       case SYM_FILTER:
-	debug("Named filter %s:\n", sym->name);
-	f_dump_line(sym->filter->root, 1);
-	break;
+        debug("Named filter %s<%s>:\n", sym->name, net_label[sym->net_type]);
+        if (sym->flags & SYM_FLAG_IS_TYPED) debug(" Flag: IS TYPED\n");
+        if (sym->flags & SYM_FLAG_DO_ADAPT) debug(" Flag: DO ADAPT\n");
+        f_dump_line(sym->filter->root, 1);
+        break;
       case SYM_FUNCTION:
-	debug("Function %s:\n", sym->name);
-	f_dump_line(sym->function, 1);
-	break;
+        debug("Function %s<%s>:\n", sym->name, net_label[sym->net_type]);
+        if (sym->flags & SYM_FLAG_IS_TYPED) debug(" Flag: IS TYPED\n");
+        if (sym->flags & SYM_FLAG_DO_ADAPT) debug(" Flag: DO ADAPT\n");
+        f_dump_line(sym->function, 1);
+        break;
       case SYM_PROTO:
 	{
 	  debug("Protocol %s:\n", sym->name);
-- 
2.24.0



More information about the Bird-users mailing list