nvme: Report only the unknown bits

When we get a smart error that's unknown, report only the unknown
(reserved) bits of the Critical Warning Bitfield.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2024-03-01 16:03:19 -07:00
parent f19875b66b
commit c5246cb7b0

View File

@ -650,7 +650,8 @@ nvme_ctrlr_log_critical_warnings(struct nvme_controller *ctrlr,
if (state & NVME_CRIT_WARN_ST_RESERVED_MASK)
nvme_ctrlr_devctl_log(ctrlr, "critical",
"unknown critical warning(s): state = 0x%02x", state);
"unknown critical warning(s): state = 0x%02x",
state & NVME_CRIT_WARN_ST_RESERVED_MASK);
}
static void