Skip to content
Snippets Groups Projects
Commit 9dd7d5ab authored by chrfranke's avatar chrfranke
Browse files

nvmeprint.cpp: Add bit 5 of SMART/Health 'Critical Warning' byte (NVMe 1.4).

Patch by Zhenwei Pi.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5165 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent b6ac5ab2
No related branches found
No related tags found
No related merge requests found
$Id$ $Id$
2021-01-15 Zhenwei Pi <pizhenwei@bytedance.com>
nvmeprint.cpp: Add bit 5 of SMART/Health 'Critical Warning' byte
(NVMe 1.4).
2021-01-10 Christian Franke <franke@computer.org> 2021-01-10 Christian Franke <franke@computer.org>
drivedb.h: Add VERSION information to trunk and all branches (#1424). drivedb.h: Add VERSION information to trunk and all branches (#1424).
......
...@@ -347,9 +347,12 @@ static void print_critical_warning(unsigned char w) ...@@ -347,9 +347,12 @@ static void print_critical_warning(unsigned char w)
if (w & 0x10) if (w & 0x10)
jout("- volatile memory backup device has failed\n"); jout("- volatile memory backup device has failed\n");
jref["volatile_memory_backup_failed"] = !!(w & 0x10); jref["volatile_memory_backup_failed"] = !!(w & 0x10);
if (w & ~0x1f) if (w & 0x20)
jout("- unknown critical warning(s) (0x%02x)\n", w & ~0x1f); jout("- persistent memory region has become read-only or unreliable\n");
jref["other"] = w & ~0x1f; jref["persistent_memory_region_unreliable"] = !!(w & 0x20);
if (w & ~0x3f)
jout("- unknown critical warning(s) (0x%02x)\n", w & ~0x3f);
jref["other"] = w & ~0x3f;
} }
jout("\n"); jout("\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment