[PATCH 3/3] nvme: Update several detail information in pel code
Chaitanya Kulkarni
Chaitanya.Kulkarni at wdc.com
Wed Apr 28 19:41:51 BST 2021
On 4/26/21 12:25, wenxiong at linux.vnet.ibm.com wrote:
> +const char *nvme_pel_event_to_string(int type)
> +{
> + switch (type) {
> + case NVME_SMART_HEALTH_EVENT: return "SMART/Health Log Snapshot Event(0x1)";
> + case NVME_FW_COMMIT_EVENT: return "Firmware Commit Event(0x2)";
> + case NVME_TIMESTAMP_EVENT: return "Timestamp Change Event(0x3)";
> + case NVME_POWER_ON_RESET_EVENT: return "Power-on or Reset Event(0x4)";
> + case NVME_NSS_HW_ERROR_EVENT: return "NVM Subsystem Hardware Error Event(0x5)";
> + case NVME_CHANGE_NS_EVENT: return "Change Namespace Event(0x6)";
> + case NVME_FORMAT_START_EVENT: return "Format NVM Start Event(0x7)";
> + case NVME_FORMAT_COMPLETION_EVENT: return "Format NVM Completion Event(0x8)";
> + case NVME_SANITIZE_START_EVENT: return "Sanitize Start Event(0x9)";
> + case NVME_SANITIZE_COMPLETION_EVENT: return "Sanitize Completion Event(0xa)";
> + case NVME_SET_FEATURE_EVENT: return "Set Feature Event(0xb)";
> + case NVME_TELEMETRY_CRT_EVENT: return "Telemetry Crt Event(0xc)";
> + case NVME_THERMAL_EXCURSION_EVENT: return "Thermal Excursion Event(0xd)";
> + default: return NULL;
> + }
> +}
> +
Please align the return values if they are not already, refer to
nvme_cmd_to_string().
More information about the Linux-nvme
mailing list