summaryrefslogtreecommitdiffstats
path: root/src/plugins/igmp/igmp.h
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2018-04-16 10:39:24 +0200
committerJakub Grajciar <jgrajcia@cisco.com>2018-04-17 07:58:14 +0000
commit83dbe57e5d32f516f297a99216c51676775bf861 (patch)
tree508b78017dce16799cd520802c417b40650c7550 /src/plugins/igmp/igmp.h
parente9be71534be452a34028ed85475a2975e03b6215 (diff)
igmp: fix debug macro
Change-Id: I071d4cfcf6ea9763dd4842a3594c486a8e400e8c Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/plugins/igmp/igmp.h')
-rw-r--r--src/plugins/igmp/igmp.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/igmp/igmp.h b/src/plugins/igmp/igmp.h
index 0dcf11f64f7..f5fb958fcad 100644
--- a/src/plugins/igmp/igmp.h
+++ b/src/plugins/igmp/igmp.h
@@ -28,13 +28,13 @@
#define IGMP_SG_TIMER (3 * IGMP_QUERY_TIMER)
#define IGMP_DEFAULT_ROBUSTNESS_VARIABLE (2)
-#define IGMP_DBG 1
+#define ENABLE_IGMP_DBG 0
-#if IGMP_DBG
-#define DBG(...) clib_warning(__VA_ARGS__)
+#if ENABLE_IGMP_DBG == 1
+#define IGMP_DBG(...) clib_warning(__VA_ARGS__)
#else
-#define DBG(...)
-#endif /* IGMP_DBG */
+#define IGMP_DBG(...)
+#endif /* ENABLE_IGMP_DBG */
#define group_ptr(p, l) ((igmp_membership_group_v3_t *)((char*)p + l))