diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-26 19:24:45 +0200 |
|---|---|---|
| committer | Mark Stapp <mjs@cisco.com> | 2024-08-27 09:53:02 -0400 |
| commit | 82e52e0f21c12aa5b7270032c32b38e1fa33aa28 (patch) | |
| tree | 6a771925348869c500ab278fd54fb30b267bc7bf /staticd/static_debug.c | |
| parent | 5dac6961540422a1ca139fae8c5ea9e5a437c4ba (diff) | |
lib: common debug config output
Implement common code for debug config output and remove daemon-specific
code that is duplicated everywhere.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'staticd/static_debug.c')
| -rw-r--r-- | staticd/static_debug.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/staticd/static_debug.c b/staticd/static_debug.c index 045c0d5b05..7e70271063 100644 --- a/staticd/static_debug.c +++ b/staticd/static_debug.c @@ -19,9 +19,9 @@ */ /* clang-format off */ -struct debug static_dbg_events = {0, "Staticd events"}; -struct debug static_dbg_route = {0, "Staticd route"}; -struct debug static_dbg_bfd = {0, "Staticd bfd"}; +struct debug static_dbg_events = {0, "debug static events", "Staticd events"}; +struct debug static_dbg_route = {0, "debug static route", "Staticd route"}; +struct debug static_dbg_bfd = {0, "debug static bfd", "Staticd bfd"}; struct debug *static_debug_arr[] = { &static_dbg_events, @@ -50,11 +50,6 @@ static int static_debug_config_write_helper(struct vty *vty, bool config) return 0; } -int static_config_write_debug(struct vty *vty) -{ - return static_debug_config_write_helper(vty, true); -} - int static_debug_status_write(struct vty *vty) { return static_debug_config_write_helper(vty, false); |
