]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-print: print the nvme generic name in json output as well
authorSagi Grimberg <sagi@grimberg.me>
Wed, 15 Feb 2023 09:00:20 +0000 (11:00 +0200)
committerDaniel Wagner <dwagner@suse.de>
Wed, 15 Feb 2023 10:16:16 +0000 (11:16 +0100)
commita7c8f55e8518051da9742981607e1771839d2d8f
treeb163b1036798a1e135b4096a6525284b381eca7e
parent608742815b49a4f3697cbcbb688e830d2225b3cd
nvme-print: print the nvme generic name in json output as well

For both simple and detailed outputs present the nvme generic
chardev name/path similar to how the ns name/path is presented.

Fixes: f0895ceb145e ("nvme-print: print generic device in list command")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Link: https://lore.kernel.org/r/20230215090020.620994-1-sagi@grimberg.me
[dwagner: added additional "Generic" output to json_details_list in the
          "Namespace" section]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme-print-json.c
nvme-print.c
nvme-print.h