]> git.proxmox.com Git - mirror_frr.git/commit
lib: format NULL timevals correctly
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 28 Apr 2022 10:23:16 +0000 (12:23 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 28 Apr 2022 13:51:00 +0000 (15:51 +0200)
commit782fe5e4500225eddc3cc989ea327a49863fbe66
tree8ce12f7adde727edb81010983a688a060d980949
parent633a50d11c7dc14e543e849cc4ec135ca0416f17
lib: format NULL timevals correctly

Passing NULL for a `%pTVMs` would result in `(null)Ms`, i.e. the `Ms`
flags not eaten up.  Change to eat those up, and print `-` instead for
NULL times.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/strformat.c