]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix obvious mistake in protocol debug dump
authorMaria Matejka <mq@ucw.cz>
Mon, 6 Mar 2023 18:28:08 +0000 (19:28 +0100)
committerMaria Matejka <mq@ucw.cz>
Tue, 4 Apr 2023 15:00:58 +0000 (17:00 +0200)
nest/proto.c

index b172ad2d912a8ad45c2c0ace5ad7eb15accb25f9..f8ad64dbd4598719d8847503e5ae1d5238876fbc 100644 (file)
@@ -1784,10 +1784,10 @@ protos_dump_all(void)
   debug("Protocols:\n");
 
   struct proto *p;
-  WALK_LIST(p, proto_list)
+  WALK_LIST(p, proto_list) PROTO_LOCKED_FROM_MAIN(p)
   {
 #define DPF(x) (p->x ? " " #x : "")
-    debug("  protocol %s (%p) state %s with %d active channels flags: %s%s%s%s%s\n",
+    debug("  protocol %s (%p) state %s with %d active channels flags: %s%s%s%s\n",
        p->name, p, p_states[p->proto_state], p->active_channels,
        DPF(disabled), DPF(active), DPF(do_stop), DPF(reconfiguring));
 #undef DPF