Merge pull request #8317 from mjstapp/fix_short_printfrr_buf

This commit is contained in:
David Lamparter 2021-03-26 19:40:21 +01:00 committed by GitHub
commit 9a5d359ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ __wcsconv(wchar_t *wcsarg, int prec)
* write a uintmax_t in octal (plus one byte). * write a uintmax_t in octal (plus one byte).
*/ */
#if UINTMAX_MAX <= UINT64_MAX #if UINTMAX_MAX <= UINT64_MAX
#define BUF 64 #define BUF 80
#else #else
#error "BUF must be large enough to format a uintmax_t" #error "BUF must be large enough to format a uintmax_t"
#endif #endif

View File

@ -20,7 +20,7 @@
*/ */
#include <zebra.h> #include <zebra.h>
#include "printfrr.h"
#include "prefix.h" #include "prefix.h"
#include "table.h" #include "table.h"
@ -113,7 +113,7 @@ static void print_subtree(struct route_node *rn, const char *legend,
printf(" "); printf(" ");
} }
printf("%s: %pFX", legend, &rn->p); printfrr("%s: %pFX", legend, &rn->p);
if (!rn->info) { if (!rn->info) {
printf(" (internal)"); printf(" (internal)");
} }