]> git.ipfire.org Git - thirdparty/iproute2.git/commit
json_print: Add print_tv()
authorPetr Machata <petrm@nvidia.com>
Wed, 17 Mar 2021 12:54:31 +0000 (13:54 +0100)
committerDavid Ahern <dsahern@kernel.org>
Fri, 19 Mar 2021 15:00:08 +0000 (15:00 +0000)
commite757f741e9fa528d2ed72cc0ec369e402a5fdc9c
tree6fd2cf577b18567c7e12c3377fb70c097cf7d1ba
parenta5b355c08c62fb5b3a42d0e27ef05571c7b30e2e
json_print: Add print_tv()

Add a helper to dump a timeval. Print by first converting to double and
then dispatching to print_color_float().

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
include/json_print.h
lib/json_print.c