]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: fix printfrr derp 4637/head
authorDavid Lamparter <equinox@diac24.net>
Wed, 3 Jul 2019 13:13:41 +0000 (15:13 +0200)
committerDavid Lamparter <equinox@diac24.net>
Wed, 3 Jul 2019 13:15:26 +0000 (15:15 +0200)
Yeah, gotta use v... if the arg is a va_list...

Fixes: #4600
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
isisd/isis_misc.c

index d4c38efaf3016ed1c8f0a36758ba79262b0d5be9..3ad8278e103eab8154059a6825b85b14aa9ed9d9 100644 (file)
@@ -519,7 +519,7 @@ void log_multiline(int priority, const char *prefix, const char *format, ...)
        char *p;
 
        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);
 
        if (!p)
@@ -542,7 +542,7 @@ void vty_multiline(struct vty *vty, const char *prefix, const char *format, ...)
        char *p;
 
        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);
 
        if (!p)