mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 21:10:28 +00:00
Merge pull request #8317 from mjstapp/fix_short_printfrr_buf
This commit is contained in:
commit
9a5d359ce8
@ -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
|
||||||
|
@ -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)");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user