diff options
author | Christian Hopps <chopps@labn.net> | 2024-12-02 01:46:34 +0100 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2024-12-16 03:51:27 +0100 |
commit | 73e54e4168d80588f57bf145cee924ce8ab7b381 (patch) | |
tree | 1369e561d276dc66c5998975301cdc02776cc801 /lib/darr.c | |
parent | Merge pull request #17645 from donaldsharp/support_bundle_rip (diff) | |
download | frr-73e54e4168d80588f57bf145cee924ce8ab7b381.tar.xz frr-73e54e4168d80588f57bf145cee924ce8ab7b381.zip |
lib: darr: use the FRR printf formatter
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/darr.c')
-rw-r--r-- | lib/darr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/darr.c b/lib/darr.c index 7a0127410..0cffa6442 100644 --- a/lib/darr.c +++ b/lib/darr.c @@ -8,6 +8,7 @@ #include <zebra.h> #include "darr.h" #include "memory.h" +#include "printfrr.h" DEFINE_MTYPE(LIB, DARR, "Dynamic Array"); DEFINE_MTYPE(LIB, DARR_STR, "Dynamic Array String"); @@ -70,7 +71,7 @@ char *__darr_in_vsprintf(char **sp, bool concat, const char *fmt, va_list ap) *darr_append(*sp) = 0; again: va_copy(ap_copy, ap); - len = vsnprintf(darr_last(*sp), darr_avail(*sp) + 1, fmt, ap_copy); + len = vsnprintfrr(darr_last(*sp), darr_avail(*sp) + 1, fmt, ap_copy); va_end(ap_copy); if (len < 0) darr_in_strcat(*sp, fmt); |