summaryrefslogtreecommitdiffstats
path: root/isisd/isisd.h
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2020-05-04 09:40:36 +0200
committerOlivier Dugeon <olivier.dugeon@orange.com>2020-05-14 16:36:38 +0200
commitb407c77a4aa371e2b87a7e1613ec36e14e900064 (patch)
tree51fd746593ed0f2e48cf30c5558d2a625b34b922 /isisd/isisd.h
parentisisd: IS-IS-SR preparation for master 2/5 (diff)
downloadfrr-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.h6
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)