]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print: print discovery async event support
authorMartin George <marting@netapp.com>
Sat, 19 Mar 2022 11:51:49 +0000 (17:21 +0530)
committerMartin George <marting@netapp.com>
Sat, 19 Mar 2022 11:51:49 +0000 (17:21 +0530)
Print the discovery log page change notices async event support
in nvme_feature_show_fields().

Signed-off-by: Martin George <marting@netapp.com>
nvme-print.c

index 2b50fd52355cf4350c8d3d511d342acce207a9d8..4cb6f3ccd063ae0e1a6f51b359e22667280b2b3d 100644 (file)
@@ -6772,6 +6772,8 @@ void nvme_feature_show_fields(enum nvme_features_id fid, unsigned int result, un
                printf("\tDisable Normal (DN): %s\n", (result & 0x00000001) ? "True":"False");
                break;
        case NVME_FEAT_FID_ASYNC_EVENT:
+               printf("\tDiscovery Log Page Change Notices: %s\n",
+                       ((result & 0x80000000) >> 31) ? "Send async event":"Do not send async event");
                printf("\tEndurance Group Event Aggregate Log Change Notices: %s\n",
                        ((result & 0x00004000) >> 14) ? "Send async event":"Do not send async event");
                printf("\tLBA Status Information Notices  : %s\n",