From 2ee6d756029b748a393765aefbd785c001ff25cf Mon Sep 17 00:00:00 2001 From: Niklas Cassel Date: Fri, 18 Sep 2020 15:37:12 +0000 Subject: [PATCH] nvme-print: ZNS ozcs field is 16 bits According to the ZNS specification, the ZNS ozcs field is 16 bits, whereof 15 are reserved bits. Signed-off-by: Niklas Cassel --- nvme-print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvme-print.c b/nvme-print.c index 1a253b57..05b39d77 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -2972,11 +2972,11 @@ static void show_nvme_id_ns_zoned_zoc(__le16 ns_zoc) static void show_nvme_id_ns_zoned_ozcs(__le16 ns_ozcs) { __u16 ozcs = le16_to_cpu(ns_ozcs); - __u8 rsvd = (ozcs & 0xfe) >> 1; + __u8 rsvd = (ozcs & 0xfffe) >> 1; __u8 razb = ozcs & 0x1; if (rsvd) - printf(" [7:1] : %#x\tReserved\n", rsvd); + printf(" [15:1] : %#x\tReserved\n", rsvd); printf(" [2:2] : %#x\tRead Across Zone Boundaries: %s\n", razb, razb ? "Yes" : "No"); printf("\n"); -- 2.50.1