The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=c5246cb7b0153730101163381576e9b0e91c73a5
commit c5246cb7b0153730101163381576e9b0e91c73a5 Author: Warner Losh <i...@freebsd.org> AuthorDate: 2024-03-01 23:03:19 +0000 Commit: Warner Losh <i...@freebsd.org> CommitDate: 2024-03-01 23:04:27 +0000 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 --- sys/dev/nvme/nvme_ctrlr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/nvme/nvme_ctrlr.c b/sys/dev/nvme/nvme_ctrlr.c index b29512455fda..0d33454125bd 100644 --- a/sys/dev/nvme/nvme_ctrlr.c +++ b/sys/dev/nvme/nvme_ctrlr.c @@ -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