File 0028-nvme-print-add-discovery-async-event-config-field.patch of Package nvme-cli.22025

From: Martin George <marting@netapp.com>
Date: Wed, 27 Oct 2021 14:30:24 +0530
Subject: nvme-print: add discovery async event config field
References: bsc#1191935
Git-commit: b7ccd742924ffcb8770ee5dd1a88adc39636451e

Add a new async event config field for discovery log page
change notices.

Signed-off-by: Martin George <marting@netapp.com>
---
 nvme-print.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/nvme-print.c
+++ b/nvme-print.c
@@ -4199,10 +4199,12 @@ void nvme_feature_show_fields(__u32 fid,
 		printf("\tDisable Normal (DN): %s\n", (result & 0x00000001) ? "True":"False");
 		break;
 	case NVME_FEAT_ASYNC_EVENT:
+		printf("\tDiscovery Log Page Change Notices: %s\n", ((result & 0x80000000) >> 31) ? "Send async event":"Do not send 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 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:
 		printf("\tAutonomous Power State Transition Enable (APSTE): %s\n", (result & 0x00000001) ? "Enabled":"Disabled");
openSUSE Build Service is sponsored by