summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_te.h
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2021-02-12 15:47:09 +0100
committerOlivier Dugeon <olivier.dugeon@orange.com>2021-03-23 15:39:29 +0100
commitfd3c7692eb374f8ba55a1f8c871330908e12729d (patch)
tree061e7dd5ca9e1f8fe3304935ae913b9d3b80e27f /ospfd/ospf_te.h
parentMerge pull request #8305 from donaldsharp/bgp_ll_ifp_change (diff)
downloadfrr-fd3c7692eb374f8ba55a1f8c871330908e12729d.tar.xz
frr-fd3c7692eb374f8ba55a1f8c871330908e12729d.zip
ospfd: Improve MPLS-TE debug
Add Macro to ospf_te.h to ease debug message in ospf_te.c Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_te.h')
-rw-r--r--ospfd/ospf_te.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ospfd/ospf_te.h b/ospfd/ospf_te.h
index 06c17f07f..97217eb35 100644
--- a/ospfd/ospf_te.h
+++ b/ospfd/ospf_te.h
@@ -94,6 +94,13 @@
#define LPFLG_LOOKUP_DONE 0x4
#define LPFLG_LSA_FORCED_REFRESH 0x8
+/* Macro to log debug message */
+#define ote_debug(...) \
+ do { \
+ if (IS_DEBUG_OSPF_TE) \
+ zlog_debug(__VA_ARGS__); \
+ } while (0)
+
/*
* Following section defines TLV body parts.
*/