]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: use printfrr to use extended format specs 8317/head
authorMark Stapp <mjs@voltanet.io>
Tue, 23 Mar 2021 18:50:14 +0000 (14:50 -0400)
committerMark Stapp <mjs@voltanet.io>
Tue, 23 Mar 2021 18:50:14 +0000 (14:50 -0400)
Test was using 'pFX' with printf() - need to use printfrr().

Signed-off-by: Mark Stapp <mjs@voltanet.io>
tests/lib/test_table.c

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