diff options
author | David Lamparter <equinox@diac24.net> | 2021-03-26 19:14:24 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2021-03-27 16:56:56 +0100 |
commit | eba599a39756b3d9424467f1e1f4f4475dffad17 (patch) | |
tree | 9685d22c152d27ec485016aaeea7354e15c3f657 /lib/nexthop.c | |
parent | lib: rework printfrr extensions to output directly (diff) | |
download | frr-eba599a39756b3d9424467f1e1f4f4475dffad17.tar.xz frr-eba599a39756b3d9424467f1e1f4f4475dffad17.zip |
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/nexthop.c')
-rw-r--r-- | lib/nexthop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nexthop.c b/lib/nexthop.c index 64b4f3adb..443df9944 100644 --- a/lib/nexthop.c +++ b/lib/nexthop.c @@ -749,7 +749,7 @@ static ssize_t printfrr_nh(struct fbuf *buf, const char **fmt, } if (!nexthop) - return bputs(buf, "NULL"); + return bputs(buf, "(null)"); switch (nexthop->type) { case NEXTHOP_TYPE_IPV4: @@ -799,7 +799,7 @@ static ssize_t printfrr_nh(struct fbuf *buf, const char **fmt, (*fmt)++; if (!nexthop) - return bputs(buf, "NULL"); + return bputs(buf, "(null)"); switch (nexthop->type) { case NEXTHOP_TYPE_IFINDEX: |