]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: fix csi data type in list_ns
authorGollu Appalanaidu <anaidu.gollu@samsung.com>
Sun, 16 May 2021 03:51:46 +0000 (09:21 +0530)
committerKeith Busch <kbusch@kernel.org>
Tue, 25 May 2021 13:57:19 +0000 (07:57 -0600)
Command Set Identifier (CSI) data type is 8 bits, fix that.

Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index 8968778d5cbc565f4755c843f1e0ec2f4cef8a83..94015710917f408b1855d6f271f1c4720bed727c 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -1436,7 +1436,7 @@ static int list_ns(int argc, char **argv, struct command *cmd, struct plugin *pl
        struct config {
                __u32 namespace_id;
                int  all;
-               __u16 csi;
+               __u8 csi;
        };
 
        struct config cfg = {