]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/format-table: do not print '.0'
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 29 May 2024 16:07:23 +0000 (18:07 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 May 2024 09:38:30 +0000 (11:38 +0200)
commit11226bf19bb9effcc130dc297a7c7a660ccb75ee
tree2459bbe9bd21f5e45a26d5eb4737c104c0363b4d
parent134bdba832c24d8234f935b19edb5676fc81e282
shared/format-table: do not print '.0'

This makes output a bit shorter and nicer. For us, shorter output is generally
better.

Also, drop unnecessary UINT64_C macros. The left operand is always uint64_t,
and C upcasting rules mean that it doesn't matter if the right operand is
narrower or signed, the operation is always done on the wider unsigned type.
src/basic/format-util.c
src/test/test-format-table.c
src/test/test-format-util.c
test/units/TEST-58-REPART.sh