]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/wdc: Output 128bit values as uint128 type instead of double
authorSteven Seungcheol Lee <sc108.lee@samsung.com>
Wed, 7 Sep 2022 09:18:02 +0000 (11:18 +0200)
committerDaniel Wagner <dwagner@suse.de>
Wed, 7 Sep 2022 09:27:26 +0000 (11:27 +0200)
commit2fe6fcf75ec7b7828b628802d315039829773e36
treed32f8a002b235fd3bd4e05e870848fcf643d33ad
parent696a5b3f302d9e1c41f49212555c501713d5db6d
plugins/wdc: Output 128bit values as uint128 type instead of double

The 128bit types should be printed as integer not as double. The
print function for double type will add decimal points.

While at it drop the local copy of int128_to_double and use the one
from util.

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
[dwagner: refactoring]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
plugins/wdc/wdc-nvme.c