]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: Modify Get Features-Asynchronous Event Configuration
authorJasonChiuCC <JasonChiuCC@gmail.com>
Tue, 29 May 2018 07:27:15 +0000 (15:27 +0800)
committerJasonChiuCC <JasonChiuCC@gmail.com>
Tue, 29 May 2018 07:27:15 +0000 (15:27 +0800)
Modify Get Features-Asynchronous Event Configuration that can get Telemetry Log Notices info

nvme-print.c

index d63f58d3bbe030497c95b50236002a22fabee94b..fccdac7491205fea00da69a36c00b1af1dd1fd1a 100644 (file)
@@ -1635,8 +1635,9 @@ void nvme_feature_show_fields(__u32 fid, unsigned int result, unsigned char *buf
                printf("\tDisable Normal (DN): %s\n", (result & 0x00000001) ? "True":"False");
                break;
        case NVME_FEAT_ASYNC_EVENT:
+               printf("\tTelemetry Log Notices           : %s\n", ((result & 0x00000400) >> 10) ? "Send async event":"Do not send async event");
                printf("\tFirmware Activation Notices     : %s\n", ((result & 0x00000200) >> 9) ? "Send async event":"Do not send async event");
-               printf("\tNamespace Attribute Notices     : %s\n", ((result & 0x00000100) >> 8) ? "Send NameSpace Attribute Changed event":"Do not send NameSpace Attribute Changed event");
+               printf("\tNamespace Attribute Notices     : %s\n", ((result & 0x00000100) >> 8) ? "Send async event":"Do not send async event");
                printf("\tSMART / Health Critical Warnings: %s\n", (result & 0x000000ff) ? "Send async event":"Do not send async event");
                break;
        case NVME_FEAT_AUTO_PST: