0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-10 05:08:42 +00:00

Fix obvious mistake in protocol debug dump

This commit is contained in:
Maria Matejka 2023-03-06 19:28:08 +01:00
parent c8507c1247
commit 7d6fe6dfb1

View File

@ -1784,10 +1784,10 @@ protos_dump_all(void)
debug("Protocols:\n"); debug("Protocols:\n");
struct proto *p; struct proto *p;
WALK_LIST(p, proto_list) WALK_LIST(p, proto_list) PROTO_LOCKED_FROM_MAIN(p)
{ {
#define DPF(x) (p->x ? " " #x : "") #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, p->name, p, p_states[p->proto_state], p->active_channels,
DPF(disabled), DPF(active), DPF(do_stop), DPF(reconfiguring)); DPF(disabled), DPF(active), DPF(do_stop), DPF(reconfiguring));
#undef DPF #undef DPF