summaryrefslogtreecommitdiff
path: root/lib/zlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zlog.c')
-rw-r--r--lib/zlog.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/zlog.c b/lib/zlog.c
index ffca572609..ce63227a5c 100644
--- a/lib/zlog.c
+++ b/lib/zlog.c
@@ -685,8 +685,17 @@ static void zlog_backtrace_msg(const struct xref_logmsg *xref, int prio)
tc->xref->xref.line);
}
-void vzlogx(const struct xref_logmsg *xref, int prio,
- const char *fmt, va_list ap)
+PRINTFRR(2, 3)
+void ezlog(int prio, const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ vzlog(prio, fmt, ap);
+ va_end(ap);
+}
+
+void vzlogx(const struct xref_logmsg *xref, int prio, const char *fmt, va_list ap)
{
struct zlog_tls *zlog_tls = zlog_tls_get();