mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 06:02:26 +00:00
Merge pull request #7699 from opensourcerouting/ldpd-printfrr-issue
ldpd: fix printfrr format specifiers in the child processes
This commit is contained in:
commit
1c6a23c859
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user