]> git.ipfire.org Git - thirdparty/iproute2.git/commit
lib: Update backend of print_size to accept 64 bit size
authorJay Vosburgh <jay.vosburgh@canonical.com>
Tue, 16 Sep 2025 21:57:28 +0000 (14:57 -0700)
committerDavid Ahern <dsahern@kernel.org>
Thu, 18 Sep 2025 02:18:40 +0000 (02:18 +0000)
commit1ee417ac43ee02fdc4458a647f3cf2e4f8a48d65
tree4562269c1e3edbf4ddcae392c58cf554760e75d3
parent452cbd61698fb1eec939ef6689b36f44d92b7110
lib: Update backend of print_size to accept 64 bit size

In preparation for accepting 64 bit burst sizes, modify
sprint_size, the formatting function behind print_size, to accept __u64 as
its size parameter.  Also include a "Gb" size category.

Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
include/json_print.h
lib/json_print_math.c