summaryrefslogtreecommitdiff
path: root/pbrd/pbr_debug.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-03-26 19:24:45 +0200
committerMark Stapp <mjs@cisco.com>2024-08-27 09:53:02 -0400
commit82e52e0f21c12aa5b7270032c32b38e1fa33aa28 (patch)
tree6a771925348869c500ab278fd54fb30b267bc7bf /pbrd/pbr_debug.c
parent5dac6961540422a1ca139fae8c5ea9e5a437c4ba (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 'pbrd/pbr_debug.c')
-rw-r--r--pbrd/pbr_debug.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/pbrd/pbr_debug.c b/pbrd/pbr_debug.c
index eca2802e98..027f1e2c5c 100644
--- a/pbrd/pbr_debug.c
+++ b/pbrd/pbr_debug.c
@@ -13,10 +13,11 @@
#include "pbrd/pbr_debug_clippy.c"
#include "pbrd/pbr_debug.h"
-struct debug pbr_dbg_map = {0, "PBR map"};
-struct debug pbr_dbg_zebra = {0, "PBR Zebra communications"};
-struct debug pbr_dbg_nht = {0, "PBR nexthop tracking"};
-struct debug pbr_dbg_event = {0, "PBR events"};
+struct debug pbr_dbg_map = { 0, "debug pbr map", "PBR map" };
+struct debug pbr_dbg_zebra = { 0, "debug pbr zebra",
+ "PBR Zebra communications" };
+struct debug pbr_dbg_nht = { 0, "debug pbr nht", "PBR nexthop tracking" };
+struct debug pbr_dbg_event = { 0, "debug pbr events", "PBR events" };
struct debug *pbr_debugs[] = {&pbr_dbg_map, &pbr_dbg_zebra, &pbr_dbg_nht,
&pbr_dbg_event};
@@ -41,11 +42,6 @@ int pbr_debug_config_write_helper(struct vty *vty, bool config)
return 0;
}
-int pbr_debug_config_write(struct vty *vty)
-{
- return pbr_debug_config_write_helper(vty, true);
-}
-
void pbr_debug_init(void)
{
debug_install(&pbr_dbg_map);