summaryrefslogtreecommitdiff
path: root/lib/srcdest_table.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-03-26 19:14:24 +0100
committerDavid Lamparter <equinox@diac24.net>2021-03-27 16:56:56 +0100
commiteba599a39756b3d9424467f1e1f4f4475dffad17 (patch)
tree9685d22c152d27ec485016aaeea7354e15c3f657 /lib/srcdest_table.c
parent212e04e5a7f682594dab26cd8354bc4fa040b61f (diff)
lib: print `(null)` rather than `NULL`
... for consistency with `%s`, which also prints `(null)`. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/srcdest_table.c')
-rw-r--r--lib/srcdest_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/srcdest_table.c b/lib/srcdest_table.c
index ca48d56e4d..b2422ba460 100644
--- a/lib/srcdest_table.c
+++ b/lib/srcdest_table.c
@@ -315,7 +315,7 @@ static ssize_t printfrr_rn(struct fbuf *buf, const char **fmt,
char cbuf[PREFIX_STRLEN * 2 + 6];
if (!rn)
- return bputs(buf, "NULL");
+ return bputs(buf, "(null)");
srcdest_rnode_prefixes(rn, &dst_p, &src_p);
srcdest2str(dst_p, (const struct prefix_ipv6 *)src_p,