]> git.proxmox.com Git - mirror_frr.git/blob - nhrpd/debug.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / nhrpd / debug.h
1 #include "log.h"
2
3 #define NHRP_DEBUG_COMMON (1 << 0)
4 #define NHRP_DEBUG_KERNEL (1 << 1)
5 #define NHRP_DEBUG_IF (1 << 2)
6 #define NHRP_DEBUG_ROUTE (1 << 3)
7 #define NHRP_DEBUG_VICI (1 << 4)
8 #define NHRP_DEBUG_EVENT (1 << 5)
9 #define NHRP_DEBUG_ALL (0xFFFF)
10
11 extern unsigned int debug_flags;
12
13 #define debugf(level, ...) \
14 do { \
15 if (unlikely(debug_flags & level)) \
16 zlog_debug(__VA_ARGS__); \
17 } while (0)