]> git.proxmox.com Git - mirror_frr.git/commit - ldpd/log.c
ldpd: fix printfrr format specifiers in the child processes
authorRenato Westphal <renato@opensourcerouting.org>
Sun, 6 Dec 2020 00:44:41 +0000 (21:44 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 9 Dec 2020 14:55:10 +0000 (11:55 -0300)
commit5f004539b83db92520903b601d1717a2b702ba50
treecd9f453f00342c3d25b3e59199cd0cab70e74885
parente386d2b15419382d3cf00a6cd986fbdc723b48f5
ldpd: fix printfrr format specifiers in the child processes

In ldpd, the child processes send IPC messages to the main process to
perform logging in their behalf (access to the file descriptor used
for logging needs to be serialized). This commit fixes a problem
that was preventing the printfrr format specifiers from working in
the child processes, since vsnprintf() was being used instead of
vsnprintfrr() before sending the log messages to the parent process.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/log.c