]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-print: fix ZNS MAR/MOR print format
authorNiklas Cassel <niklas.cassel@wdc.com>
Fri, 23 Oct 2020 09:37:30 +0000 (11:37 +0200)
committerKeith Busch <kbusch@kernel.org>
Fri, 23 Oct 2020 14:41:17 +0000 (08:41 -0600)
commit0720599cd0757d5bef8c8b1032a1de11968976a8
tree1f2a8777f9b3597a10de3e5bf5a25ceb6ed507b4
parenta67280f377b23870b5f82ee8482f3fc6f4c594ac
nvme-print: fix ZNS MAR/MOR print format

MAR is currently printed as unsigned.
MOR is currently printed as signed.
They should use the same print format.

Printing MOR as unsigned on a controller that has no limit,
shows as -1, which doesn't make sense.

Since no limit is represented as 0xffffffff in the ZNS spec,
printing MAR/MOR as hex makes the most sense.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
nvme-print.c