]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Revert "nvme: Masks SSTAT in sanize-log output"
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 23 May 2023 13:08:40 +0000 (15:08 +0200)
committerDaniel Wagner <wagi@monom.org>
Wed, 24 May 2023 13:33:37 +0000 (15:33 +0200)
The NVME_SANITIZE_SSTAT_STATUS_MASK is used to mask the
3 least significant bits (representing the status of the most recent
sanitize operation) of the SSTAT field.

The SSTAT field is 16 bits wide and contains other information too, such
as the Global Data Erased bit and the number of completed passes.

Revert this commit so nvme-cli will print the entire SSTAT field

This reverts commit 7092ff55c5d9017231a68fa4dbb9a37b42d61d61.

nvme-print.c

index c989435ddb24e6b17e24daae58f2642774726f46..735ec193bce8715cdea1943f0a69a565221563ac 100644 (file)
@@ -4423,7 +4423,7 @@ void nvme_show_sanitize_log(struct nvme_sanitize_log_page *sanitize,
                printf("\n");
 
        printf("Sanitize Status                        (SSTAT) :  %#x\n",
-               le16_to_cpu(sanitize->sstat) & NVME_SANITIZE_SSTAT_STATUS_MASK);
+               le16_to_cpu(sanitize->sstat));
        if (human)
                nvme_show_sanitize_log_sstat(le16_to_cpu(sanitize->sstat));