summaryrefslogtreecommitdiff
path: root/ldpd/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldpd/log.c')
-rw-r--r--ldpd/log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldpd/log.c b/ldpd/log.c
index 1903017588..1aaad41a10 100644
--- a/ldpd/log.c
+++ b/ldpd/log.c
@@ -22,6 +22,7 @@
#include "ldpe.h"
#include "lde.h"
#include "log.h"
+#include "printfrr.h"
#include <lib/log.h>
@@ -44,12 +45,12 @@ vlog(int pri, const char *fmt, va_list ap)
switch (ldpd_process) {
case PROC_LDE_ENGINE:
- vsnprintf(buf, sizeof(buf), fmt, ap);
+ vsnprintfrr(buf, sizeof(buf), fmt, ap);
lde_imsg_compose_parent_sync(IMSG_LOG, pri, buf,
strlen(buf) + 1);
break;
case PROC_LDP_ENGINE:
- vsnprintf(buf, sizeof(buf), fmt, ap);
+ vsnprintfrr(buf, sizeof(buf), fmt, ap);
ldpe_imsg_compose_parent_sync(IMSG_LOG, pri, buf,
strlen(buf) + 1);
break;