constants.c (8bb5e7f4dcd9b9ef22a3ea25c9066a8a968f12dd) | constants.c (eb7e2d92588cc6351286de13e3b5d70ecc768888) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * NVM Express device driver verbose errors 4 * Copyright (c) 2022, Oracle and/or its affiliates 5 */ 6 7#include "nvme.h" 8 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * NVM Express device driver verbose errors 4 * Copyright (c) 2022, Oracle and/or its affiliates 5 */ 6 7#include "nvme.h" 8 |
9#ifdef CONFIG_NVME_VERBOSE_ERRORS | |
10static const char * const nvme_ops[] = { 11 [nvme_cmd_flush] = "Flush", 12 [nvme_cmd_write] = "Write", 13 [nvme_cmd_read] = "Read", 14 [nvme_cmd_write_uncor] = "Write Uncorrectable", 15 [nvme_cmd_compare] = "Compare", 16 [nvme_cmd_write_zeroes] = "Write Zeros", 17 [nvme_cmd_dsm] = "Dataset Management", --- 162 unchanged lines hidden (view full) --- 180} 181 182const unsigned char *nvme_get_admin_opcode_str(u8 opcode) 183{ 184 if (opcode < ARRAY_SIZE(nvme_admin_ops) && nvme_admin_ops[opcode]) 185 return nvme_admin_ops[opcode]; 186 return "Unknown"; 187} | 9static const char * const nvme_ops[] = { 10 [nvme_cmd_flush] = "Flush", 11 [nvme_cmd_write] = "Write", 12 [nvme_cmd_read] = "Read", 13 [nvme_cmd_write_uncor] = "Write Uncorrectable", 14 [nvme_cmd_compare] = "Compare", 15 [nvme_cmd_write_zeroes] = "Write Zeros", 16 [nvme_cmd_dsm] = "Dataset Management", --- 162 unchanged lines hidden (view full) --- 179} 180 181const unsigned char *nvme_get_admin_opcode_str(u8 opcode) 182{ 183 if (opcode < ARRAY_SIZE(nvme_admin_ops) && nvme_admin_ops[opcode]) 184 return nvme_admin_ops[opcode]; 185 return "Unknown"; 186} |
188#endif /* CONFIG_NVME_VERBOSE_ERRORS */ | |