summaryrefslogtreecommitdiffstats
path: root/src/vnet/adj/adj_internal.h
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2022-02-18 11:10:11 +0000
committerDamjan Marion <dmarion@me.com>2022-02-18 14:40:28 +0000
commit2164f7bf58feacdedce61c5b5790980b533ae5bf (patch)
tree92b64d2f532500b70b9e1b9baaf56ed74ee5fee5 /src/vnet/adj/adj_internal.h
parent66593a6a63fe30ed4b8bed96844244d78274e8f2 (diff)
fib: Use the VLIB logger for adjacency debugging
Type: improvement remove the [un]lock logs, they are not useful. Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I903d3088b8ed9831f931208aeb6b6862a945550c
Diffstat (limited to 'src/vnet/adj/adj_internal.h')
-rw-r--r--src/vnet/adj/adj_internal.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/vnet/adj/adj_internal.h b/src/vnet/adj/adj_internal.h
index 6842bc4147e..380af46e22a 100644
--- a/src/vnet/adj/adj_internal.h
+++ b/src/vnet/adj/adj_internal.h
@@ -31,16 +31,13 @@
/*
* Debug macro
*/
-#ifdef ADJ_DEBUG
-#define ADJ_DBG(_adj, _fmt, _args...) \
-{ \
- clib_warning("adj:[%d:%p]:" _fmt, \
- _adj - adj_pool, _adj, \
- ##_args); \
+extern vlib_log_class_t adj_logger;
+#define ADJ_DBG(_adj, _fmt, _args...) \
+{ \
+ vlib_log_debug(adj_logger, "adj:[%d:%p]:" _fmt, \
+ _adj - adj_pool, _adj, \
+ ##_args); \
}
-#else
-#define ADJ_DBG(_e, _fmt, _args...)
-#endif
/*
* Vlib nodes