]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-print: fix counter while looping through uuid_list
authorMartin George <marting@netapp.com>
Wed, 19 Jul 2023 06:55:54 +0000 (12:25 +0530)
committerDaniel Wagner <wagi@monom.org>
Thu, 20 Jul 2023 08:14:30 +0000 (10:14 +0200)
commit08dec87f7b2fa2d07fbbf9be98ae50671852a7e0
tree419b9ca10c47538c0c5908d12a61dea28c7d7afd
parent9cf31d24f8b3911b870cb217c6715637459a376a
nvme-print: fix counter while looping through uuid_list

While iterating through the uuid_list in json_nvme_id_uuid_list()
as part of the 'id-uuid' json output, it always misses out
displaying the first uuid entry here due to wrongly initialized
counter value. Fix it.

And while we are at it, remove the respective comment in
stdout_id_uuid_list() as well where this counter is already
properly initiatlized.

Signed-off-by: Martin George <marting@netapp.com>
nvme-print-json.c
nvme-print-stdout.c