diff options
author | Olivier Dugeon <olivier.dugeon@orange.com> | 2021-02-12 15:47:09 +0100 |
---|---|---|
committer | Olivier Dugeon <olivier.dugeon@orange.com> | 2021-03-23 15:39:29 +0100 |
commit | fd3c7692eb374f8ba55a1f8c871330908e12729d (patch) | |
tree | 061e7dd5ca9e1f8fe3304935ae913b9d3b80e27f /ospfd/ospf_te.h | |
parent | Merge pull request #8305 from donaldsharp/bgp_ll_ifp_change (diff) | |
download | frr-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.h | 7 |
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. */ |