Skip to content

Commit 6d3ee5f

Browse files
ikegami-tigaw
authored andcommitted
ocp: delete internal-log command telemetry type none value definition
Since the type none value never set by the command handling. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 79b201f commit 6d3ee5f

File tree

2 files changed

+0
-55
lines changed

2 files changed

+0
-55
lines changed

plugins/ocp/ocp-nvme.c

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,60 +1537,6 @@ static int ocp_telemetry_log(int argc, char **argv, struct command *cmd, struct
15371537
nvme_show_result("Status:(%x)\n", err);
15381538
}
15391539
break;
1540-
case TELEMETRY_TYPE_NONE:
1541-
printf("\n-------------------------------------------------------------\n");
1542-
/* Host 0 (lsp == 0) must be executed before Host 1 (lsp == 1). */
1543-
printf("\nExtracting Telemetry Host 0 Dump (Data Area 1)...\n");
1544-
1545-
err = get_telemetry_dump(dev, opt.output_file, sn,
1546-
TELEMETRY_TYPE_HOST_0, 1, true);
1547-
if (err)
1548-
fprintf(stderr, "NVMe Status: %s(%x)\n", nvme_status_to_string(err, false),
1549-
err);
1550-
1551-
printf("\n-------------------------------------------------------------\n");
1552-
1553-
printf("\nExtracting Telemetry Host 0 Dump (Data Area 3)...\n");
1554-
1555-
err = get_telemetry_dump(dev, opt.output_file, sn,
1556-
TELEMETRY_TYPE_HOST_0, 3, false);
1557-
if (err)
1558-
fprintf(stderr, "NVMe Status: %s(%x)\n", nvme_status_to_string(err, false),
1559-
err);
1560-
1561-
printf("\n-------------------------------------------------------------\n");
1562-
1563-
printf("\nExtracting Telemetry Host 1 Dump (Data Area 1)...\n");
1564-
1565-
err = get_telemetry_dump(dev, opt.output_file, sn,
1566-
TELEMETRY_TYPE_HOST_1, 1, true);
1567-
if (err)
1568-
fprintf(stderr, "NVMe Status: %s(%x)\n", nvme_status_to_string(err, false),
1569-
err);
1570-
1571-
printf("\n-------------------------------------------------------------\n");
1572-
1573-
printf("\nExtracting Telemetry Host 1 Dump (Data Area 3)...\n");
1574-
1575-
err = get_telemetry_dump(dev, opt.output_file, sn,
1576-
TELEMETRY_TYPE_HOST_1, 3, false);
1577-
if (err)
1578-
fprintf(stderr, "NVMe Status: %s(%x)\n", nvme_status_to_string(err, false),
1579-
err);
1580-
1581-
printf("\n-------------------------------------------------------------\n");
1582-
1583-
printf("\nExtracting Telemetry Controller Dump (Data Area 3)...\n");
1584-
1585-
if (is_support_telemetry_controller == true) {
1586-
err = get_telemetry_dump(dev, opt.output_file, sn,
1587-
TELEMETRY_TYPE_CONTROLLER, 3, true);
1588-
if (err)
1589-
fprintf(stderr, "NVMe Status: %s(%x)\n", nvme_status_to_string(err, false), err);
1590-
}
1591-
1592-
printf("\n-------------------------------------------------------------\n");
1593-
break;
15941540
case TELEMETRY_TYPE_HOST_0:
15951541
case TELEMETRY_TYPE_HOST_1:
15961542
default:

plugins/ocp/ocp-telemetry-decode.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ static const char * const telemetry_media_wear_event_id_str[] = {
353353
#define FILE_NAME_SIZE 2048
354354

355355
enum TELEMETRY_TYPE {
356-
TELEMETRY_TYPE_NONE = 0,
357356
TELEMETRY_TYPE_HOST = 7,
358357
TELEMETRY_TYPE_CONTROLLER = 8,
359358
TELEMETRY_TYPE_HOST_0 = 9,

0 commit comments

Comments
 (0)