mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 21:33:55 +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 "ldpe.h"
|
||||||
#include "lde.h"
|
#include "lde.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
#include "printfrr.h"
|
||||||
|
|
||||||
#include <lib/log.h>
|
#include <lib/log.h>
|
||||||
|
|
||||||
@ -44,12 +45,12 @@ vlog(int pri, const char *fmt, va_list ap)
|
|||||||
|
|
||||||
switch (ldpd_process) {
|
switch (ldpd_process) {
|
||||||
case PROC_LDE_ENGINE:
|
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,
|
lde_imsg_compose_parent_sync(IMSG_LOG, pri, buf,
|
||||||
strlen(buf) + 1);
|
strlen(buf) + 1);
|
||||||
break;
|
break;
|
||||||
case PROC_LDP_ENGINE:
|
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,
|
ldpe_imsg_compose_parent_sync(IMSG_LOG, pri, buf,
|
||||||
strlen(buf) + 1);
|
strlen(buf) + 1);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user