]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
ocp: delete internal-log command telemetry type none value definition
authorTokunori Ikegami <ikegami.t@gmail.com>
Fri, 13 Dec 2024 15:37:06 +0000 (00:37 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 16 Dec 2024 07:46:52 +0000 (08:46 +0100)
Since the type none value never set by the command handling.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
plugins/ocp/ocp-nvme.c
plugins/ocp/ocp-telemetry-decode.h

index 26ee1066a17cb6ed7c7403e3a89728f25df3676f..602e19cd850965881c3c2a50d7435fc78b6f8045 100644 (file)
@@ -1537,60 +1537,6 @@ static int ocp_telemetry_log(int argc, char **argv, struct command *cmd, struct
                                nvme_show_result("Status:(%x)\n", err);
                }
                break;
-       case TELEMETRY_TYPE_NONE:
-               printf("\n-------------------------------------------------------------\n");
-               /* Host 0 (lsp == 0) must be executed before Host 1 (lsp == 1). */
-               printf("\nExtracting Telemetry Host 0 Dump (Data Area 1)...\n");
-
-               err = get_telemetry_dump(dev, opt.output_file, sn,
-                               TELEMETRY_TYPE_HOST_0, 1, true);
-               if (err)
-                       fprintf(stderr, "NVMe Status: %s(%x)\n", nvme_status_to_string(err, false),
-                               err);
-
-               printf("\n-------------------------------------------------------------\n");
-
-               printf("\nExtracting Telemetry Host 0 Dump (Data Area 3)...\n");
-
-               err = get_telemetry_dump(dev, opt.output_file, sn,
-                               TELEMETRY_TYPE_HOST_0, 3, false);
-               if (err)
-                       fprintf(stderr, "NVMe Status: %s(%x)\n", nvme_status_to_string(err, false),
-                               err);
-
-               printf("\n-------------------------------------------------------------\n");
-
-               printf("\nExtracting Telemetry Host 1 Dump (Data Area 1)...\n");
-
-               err = get_telemetry_dump(dev, opt.output_file, sn,
-                               TELEMETRY_TYPE_HOST_1, 1, true);
-               if (err)
-                       fprintf(stderr, "NVMe Status: %s(%x)\n", nvme_status_to_string(err, false),
-                               err);
-
-               printf("\n-------------------------------------------------------------\n");
-
-               printf("\nExtracting Telemetry Host 1 Dump (Data Area 3)...\n");
-
-               err = get_telemetry_dump(dev, opt.output_file, sn,
-                               TELEMETRY_TYPE_HOST_1, 3, false);
-               if (err)
-                       fprintf(stderr, "NVMe Status: %s(%x)\n", nvme_status_to_string(err, false),
-                               err);
-
-               printf("\n-------------------------------------------------------------\n");
-
-               printf("\nExtracting Telemetry Controller Dump (Data Area 3)...\n");
-
-               if (is_support_telemetry_controller == true) {
-                       err = get_telemetry_dump(dev, opt.output_file, sn,
-                                       TELEMETRY_TYPE_CONTROLLER, 3, true);
-                       if (err)
-                               fprintf(stderr, "NVMe Status: %s(%x)\n", nvme_status_to_string(err, false), err);
-               }
-
-               printf("\n-------------------------------------------------------------\n");
-               break;
        case TELEMETRY_TYPE_HOST_0:
        case TELEMETRY_TYPE_HOST_1:
        default:
index ce7de75e54f2ed8a07d7faaaa174698f5726c3c0..094c920e24489fd4eac02ae56868d02626c13690 100644 (file)
@@ -353,7 +353,6 @@ static const char * const telemetry_media_wear_event_id_str[] = {
 #define FILE_NAME_SIZE 2048
 
 enum TELEMETRY_TYPE {
-       TELEMETRY_TYPE_NONE       = 0,
        TELEMETRY_TYPE_HOST       = 7,
        TELEMETRY_TYPE_CONTROLLER = 8,
        TELEMETRY_TYPE_HOST_0     = 9,