]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
Fix PMRMSC.CMSE bitmask
authorAdam Judge <ajudge@iol.unh.edu>
Tue, 9 Jun 2020 19:35:27 +0000 (15:35 -0400)
committerKeith Busch <kbusch@kernel.org>
Tue, 9 Jun 2020 21:38:21 +0000 (15:38 -0600)
nvme-print.c

index 74142804d9202a663fcad93095427085eb1aaac6..5ddd8e0f1015b58bb48832b1714b966418d64c1e 100644 (file)
@@ -1297,8 +1297,8 @@ static void nvme_show_registers_pmrmsc(uint64_t pmrmsc)
 {
        printf("\tController Base Address (CBA)         : %" PRIx64 "\n",
                (pmrmsc & 0xfffffffffffff000) >> 12);
-       printf("\tController Memory Space Enable (CMSE  : %" PRIx64 "\n\n",
-               (pmrmsc & 0x0000000000000001) >> 1);
+       printf("\tController Memory Space Enable (CMSE) : %" PRIx64 "\n\n",
+               (pmrmsc & 0x0000000000000002) >> 1);
 }
 
 static inline uint32_t mmio_read32(void *addr)