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 /mgmtd/mgmt.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 'mgmtd/mgmt.c')
| -rw-r--r-- | mgmtd/mgmt.c | 12 | 
1 files changed, 8 insertions, 4 deletions
diff --git a/mgmtd/mgmt.c b/mgmtd/mgmt.c index 5c647551fd..cfadad4829 100644 --- a/mgmtd/mgmt.c +++ b/mgmtd/mgmt.c @@ -15,10 +15,14 @@  #include "mgmtd/mgmt_history.h"  #include "mgmtd/mgmt_memory.h" -struct debug mgmt_debug_be = { .desc = "Management backend adapter" }; -struct debug mgmt_debug_ds = {.desc = "Management datastore"}; -struct debug mgmt_debug_fe = { .desc = "Management frontend adapter" }; -struct debug mgmt_debug_txn = {.desc = "Management transaction"}; +struct debug mgmt_debug_be = { .conf = "debug mgmt backend", +			       .desc = "Management backend adapter" }; +struct debug mgmt_debug_ds = { .conf = "debug mgmt datastore", +			       .desc = "Management datastore" }; +struct debug mgmt_debug_fe = { .conf = "debug mgmt frontend", +			       .desc = "Management frontend adapter" }; +struct debug mgmt_debug_txn = { .conf = "debug mgmt transaction", +				.desc = "Management transaction" };  /* MGMTD process wide configuration.  */  static struct mgmt_master mgmt_master;  | 
