summaryrefslogtreecommitdiffstats
path: root/lib/zlog.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2020-09-29 00:13:27 +0200
committerQuentin Young <qlyoung@nvidia.com>2020-10-23 21:13:51 +0200
commitc7bb4f006b22592d3c57bd7d84d521485c278567 (patch)
treed408a8338e0c47173277f05267f73e02d53ffaab /lib/zlog.c
parentlib: add trace.h, frrtrace(), support for USDT (diff)
downloadfrr-c7bb4f006b22592d3c57bd7d84d521485c278567.tar.xz
frr-c7bb4f006b22592d3c57bd7d84d521485c278567.zip
lib, bgpd: convert lttng tracepoints to frrtrace()
- tracepoint() -> frrtrace() - tracelog() -> frrtracelog() - tracepoint_enabled() -> frrtrace_enabled() Also removes copypasta'd #ifdefs for those LTTng macros, those are handled in lib/trace.h Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/zlog.c')
-rw-r--r--lib/zlog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/zlog.c b/lib/zlog.c
index aec8744b9..e77feec5f 100644
--- a/lib/zlog.c
+++ b/lib/zlog.c
@@ -458,20 +458,20 @@ void vzlog(int prio, const char *fmt, va_list ap)
switch (prio) {
case LOG_ERR:
- tracelog(TRACE_ERR, msg);
+ frrtracelog(TRACE_ERR, msg);
break;
case LOG_WARNING:
- tracelog(TRACE_WARNING, msg);
+ frrtracelog(TRACE_WARNING, msg);
break;
case LOG_DEBUG:
- tracelog(TRACE_DEBUG, msg);
+ frrtracelog(TRACE_DEBUG, msg);
break;
case LOG_NOTICE:
- tracelog(TRACE_DEBUG, msg);
+ frrtracelog(TRACE_DEBUG, msg);
break;
case LOG_INFO:
default:
- tracelog(TRACE_INFO, msg);
+ frrtracelog(TRACE_INFO, msg);
break;
}