diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-26 16:38:45 +0200 |
|---|---|---|
| committer | Mark Stapp <mjs@cisco.com> | 2024-08-20 11:07:45 -0400 |
| commit | 1797b7eefc730bb4f5aec08f130861650c61dd97 (patch) | |
| tree | 6b97f5357cb86c73b2ed9b24f893d8296688a66c /pathd/path_pcep.c | |
| parent | d9775c690cb6f3d5fcc91805c3ada83aaa8f4835 (diff) | |
pathd: rework debugs
Pathd uses a single debug struct with additional option flags to
configure different types of debug messages. This is not how debug
library is supposed to be used. The idea of option flags is to allow
more granular control of a single type, not to represent multiple types.
This commit adds a separate debug struct for each type which greatly
simplifies the code.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'pathd/path_pcep.c')
| -rw-r--r-- | pathd/path_pcep.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pathd/path_pcep.c b/pathd/path_pcep.c index ec9d8adfc1..65ee2b5a5f 100644 --- a/pathd/path_pcep.c +++ b/pathd/path_pcep.c @@ -31,7 +31,12 @@ DEFINE_MTYPE(PATHD, PCEP, "PCEP module"); /* * Globals. */ -static struct pcep_glob pcep_glob_space = {.dbg = {0, "pathd module: pcep"}}; +static struct pcep_glob pcep_glob_space = { + .dbg_basic = {0, "PCEP basic"}, + .dbg_path = {0, "PCEP path"}, + .dbg_msg = {0, "PCEP message"}, + .dbg_lib = {0, "PCEP lib"}, +}; struct pcep_glob *pcep_g = &pcep_glob_space; /* Main Thread Even Handler */ |
