]> git.puffer.fish Git - mirror/frr.git/commit
lib: rework debug init
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 26 Mar 2024 14:54:54 +0000 (16:54 +0200)
committerMark Stapp <mjs@cisco.com>
Tue, 27 Aug 2024 13:53:02 +0000 (09:53 -0400)
commit5dac6961540422a1ca139fae8c5ea9e5a437c4ba
tree3ff27afc04b9605f832c747b82449b58d5aa5455
parent1797b7eefc730bb4f5aec08f130861650c61dd97
lib: rework debug init

The debug library allows to register a `debug_set_all` callback which
should enable all debugs in a daemon. This callback is implemented
exactly the same in each daemon. Instead of duplicating the code, rework
the lib to allow registration of each debug type, and implement the
common code only once in the lib.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
22 files changed:
lib/debug.c
lib/debug.h
lib/libfrr.c
lib/mgmt_be_client.c
lib/mgmt_fe_client.c
lib/northbound.h
lib/northbound_cli.c
lib/northbound_sysrepo.c
mgmtd/mgmt.c
pathd/path_cli.c
pathd/path_pcep_cli.c
pathd/path_ted.c
pbrd/pbr_debug.c
pbrd/pbr_vty.c
staticd/static_debug.c
tests/bgpd/test_peer_attr.c
tests/helpers/c/main.c
tests/lib/cli/common_cli.c
tests/lib/cli/test_commands.c
tests/lib/northbound/test_oper_data.c
tests/lib/test_grpc.cpp
vrrpd/vrrp_debug.c