diff options
author | Olivier Dugeon <olivier.dugeon@orange.com> | 2020-05-04 09:40:36 +0200 |
---|---|---|
committer | Olivier Dugeon <olivier.dugeon@orange.com> | 2020-05-14 16:36:38 +0200 |
commit | b407c77a4aa371e2b87a7e1613ec36e14e900064 (patch) | |
tree | 51fd746593ed0f2e48cf30c5558d2a625b34b922 /isisd/isisd.h | |
parent | isisd: IS-IS-SR preparation for master 2/5 (diff) | |
download | frr-b407c77a4aa371e2b87a7e1613ec36e14e900064.tar.xz frr-b407c77a4aa371e2b87a7e1613ec36e14e900064.zip |
isisd: IS-IS-SR preparation for master 3/5
Add debug macro and debug messages
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'isisd/isisd.h')
-rw-r--r-- | isisd/isisd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/isisd/isisd.h b/isisd/isisd.h index 56ea0993f..439428d79 100644 --- a/isisd/isisd.h +++ b/isisd/isisd.h @@ -254,6 +254,12 @@ extern struct thread_master *master; zlog_debug(__VA_ARGS__); \ } while (0) +#define sr_debug(...) \ + do { \ + if (IS_DEBUG_ISIS(DEBUG_SR)) \ + zlog_debug(__VA_ARGS__); \ + } while (0) + #define DEBUG_TE DEBUG_LSP_GEN #define IS_DEBUG_ISIS(x) (isis->debugs & x) |