summaryrefslogtreecommitdiff
path: root/zebra/debug.h
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2015-11-20 08:48:32 -0800
committervivek <vivek@cumulusnetworks.com>2015-11-20 08:48:32 -0800
commit41ec92223a7dfc14eb8cb0b84c73ad09943213eb (patch)
treea533a74b37edb67130fa36ed96066f49933fa258 /zebra/debug.h
parent0b560feb23d1ca0d59cd427f0d1fefb4db7b3c2a (diff)
Zebra: Cleanup RIB debugs
Some of the changes include: - ensuring IPv6 addresses are printed correctly - say 'updating' or 'deleting' etc. only when that is actually done - say 'queuing' or 'dequeuing' only when that is actually done - print useful info for 'detailed' debug - that now subsumes 'rib queue' - delete various useless logs - VRF-specific - print VRF id in RIB debugs prior to prefix (e.g., 4:37.1.1.0/28) Ticket: CM-8110 Reviewed By: CCR-3765 Testing Done: Manual testing (2.5-br)
Diffstat (limited to 'zebra/debug.h')
-rw-r--r--zebra/debug.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/zebra/debug.h b/zebra/debug.h
index 0fb4dd9fee..42af53f0d8 100644
--- a/zebra/debug.h
+++ b/zebra/debug.h
@@ -34,7 +34,7 @@
#define ZEBRA_DEBUG_KERNEL 0x01
#define ZEBRA_DEBUG_RIB 0x01
-#define ZEBRA_DEBUG_RIB_Q 0x02
+#define ZEBRA_DEBUG_RIB_DETAILED 0x02
#define ZEBRA_DEBUG_FPM 0x01
#define ZEBRA_DEBUG_NHT 0x01
@@ -49,8 +49,9 @@
#define IS_ZEBRA_DEBUG_KERNEL (zebra_debug_kernel & ZEBRA_DEBUG_KERNEL)
-#define IS_ZEBRA_DEBUG_RIB (zebra_debug_rib & ZEBRA_DEBUG_RIB)
-#define IS_ZEBRA_DEBUG_RIB_Q (zebra_debug_rib & ZEBRA_DEBUG_RIB_Q)
+#define IS_ZEBRA_DEBUG_RIB \
+ (zebra_debug_rib & (ZEBRA_DEBUG_RIB | ZEBRA_DEBUG_RIB_DETAILED))
+#define IS_ZEBRA_DEBUG_RIB_DETAILED (zebra_debug_rib & ZEBRA_DEBUG_RIB_DETAILED)
#define IS_ZEBRA_DEBUG_FPM (zebra_debug_fpm & ZEBRA_DEBUG_FPM)
#define IS_ZEBRA_DEBUG_NHT (zebra_debug_nht & ZEBRA_DEBUG_NHT)