]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
property: Fit print size for a property
authorMinwoo Im <minwoo.im@samsung.com>
Sun, 5 May 2019 11:58:59 +0000 (20:58 +0900)
committerMinwoo Im <minwoo.im@samsung.com>
Sun, 5 May 2019 12:05:51 +0000 (13:05 +0100)
commit207f0359f66f7085b59dace73d4b535bb887f6e5
tree05bbb00b5aa78e1de3af68f6beb2978247a00348
parent015ebe98497acdd5021071564e5e818abb0bfd38
property: Fit print size for a property

We may or may not be able to see the following output in nvme-loop env.
  # nvme get-property /dev/nvme0 -o 0x14
  property: 0x14 (Controller Configuration), value: 7f7800460001
The register CC is not in 64bit, but the upper bits are showing some values
even it's reserved in spec.

This patch makes this print size to fit to its own size of register.

Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
nvme-print.c