From: JasonChiuCC Date: Tue, 29 May 2018 07:27:15 +0000 (+0800) Subject: nvme-cli: Modify Get Features-Asynchronous Event Configuration X-Git-Tag: v1.6~34^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=df85a1af2dcc6d9cb31b7f1e1ba39d27b2bc24a6;p=users%2Fsagi%2Fnvme-cli.git nvme-cli: Modify Get Features-Asynchronous Event Configuration Modify Get Features-Asynchronous Event Configuration that can get Telemetry Log Notices info --- diff --git a/nvme-print.c b/nvme-print.c index d63f58d3..fccdac74 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -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: