mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 05:42:21 +00:00
isisd: fix printfrr derp
Yeah, gotta use v... if the arg is a va_list... Fixes: #4600 Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
c4ca3ef5e7
commit
94c4f72dcf
@ -519,7 +519,7 @@ void log_multiline(int priority, const char *prefix, const char *format, ...)
|
|||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
va_start(ap, format);
|
va_start(ap, format);
|
||||||
p = asnprintfrr(MTYPE_TMP, shortbuf, sizeof(shortbuf), format, ap);
|
p = vasnprintfrr(MTYPE_TMP, shortbuf, sizeof(shortbuf), format, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
if (!p)
|
if (!p)
|
||||||
@ -542,7 +542,7 @@ void vty_multiline(struct vty *vty, const char *prefix, const char *format, ...)
|
|||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
va_start(ap, format);
|
va_start(ap, format);
|
||||||
p = asnprintfrr(MTYPE_TMP, shortbuf, sizeof(shortbuf), format, ap);
|
p = vasnprintfrr(MTYPE_TMP, shortbuf, sizeof(shortbuf), format, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
if (!p)
|
if (!p)
|
||||||
|
Loading…
Reference in New Issue
Block a user