]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
Use 0x prefix for all hex values of id-ctrl output
authorAlexander Larin <znahar@yandex-team.ru>
Thu, 11 Apr 2019 14:11:50 +0000 (17:11 +0300)
committerAlexander Larin <znahar@yandex-team.ru>
Thu, 11 Apr 2019 14:25:36 +0000 (17:25 +0300)
commit86e97d6c220cc209a22bddfb15e4a0f2751af185
tree6f551ad6fb0a6f60471d66b36eeb7b775f877b81
parent6589093841a609a07996dbc9359f86ceaf6ea075
Use 0x prefix for all hex values of id-ctrl output

Sometimes human-readable id-ctrl output could be confusing, e.g.
$ nvme id-ctrl /dev/nvme0
NVME Identify Controller:
vid       : 0x144d
ssvid     : 0x144d
sn        : S3HDNX0K601842
mn        : SAMSUNG MZWLL1T6HEHP-00003
fr        : GPNA5B3Q
rab       : 8
ieee      : 002538
cmic      : 0x3
mdts      : 5
cntlid    : 21
...
Here cntlid value is hexdecimal and equals 33, but nothing shows that.
In the same time some other values have 0x prefix. Let's use the prefix
for all hexdecimal values of the output.

Signed-off-by: Alexander Larin <znahar@yandex-team.ru>
nvme-print.c