From: Maurizio Lombardi Date: Tue, 23 May 2023 13:08:40 +0000 (+0200) Subject: Revert "nvme: Masks SSTAT in sanize-log output" X-Git-Tag: v2.5~94 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e1afeffcbb78e252bbb0d21d2f4ed0fffeb59105;p=users%2Fsagi%2Fnvme-cli.git Revert "nvme: Masks SSTAT in sanize-log output" 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. --- diff --git a/nvme-print.c b/nvme-print.c index c989435d..735ec193 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -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));