From a2573fce03331e14b6cab8497181be9e21c94f54 Mon Sep 17 00:00:00 2001 From: Sivaprasad Gutha Date: Wed, 16 Jul 2025 15:29:32 +0530 Subject: [PATCH] nvme: Added message key for printable eye in normal format -Printable Eye message key missing for eye plotting -Removed malloc for vsdata as memory cleanup taken care by caller Signed-off-by: Sivaprasad Gutha --- nvme-print-stdout.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nvme-print-stdout.c b/nvme-print-stdout.c index 8e9ca2e304..7943b91cbe 100644 --- a/nvme-print-stdout.c +++ b/nvme-print-stdout.c @@ -776,6 +776,7 @@ static void stdout_eom_printable_eye(struct nvme_eom_lane_desc *lane) char *eye = (char *)lane->eye_desc; int i, j; + printf("Printable Eye:\n"); for (i = 0; i < le16_to_cpu(lane->nrows); i++) { for (j = 0; j < le16_to_cpu(lane->ncols); j++) printf("%c", eye[i * le16_to_cpu(lane->ncols) + j]); @@ -817,17 +818,11 @@ static void stdout_phy_rx_eom_descs(struct nvme_phy_rx_eom_log *log) if (edlen == 0) continue; - /* Hex dump Vendor Specific Eye Data */ - vsdata = malloc(edlen); - if (!vsdata) - return; - vsdataoffset = (nrows * ncols) + sizeof(struct nvme_eom_lane_desc); vsdata = (unsigned char *)((unsigned char *)desc + vsdataoffset); printf("Eye Data:\n"); d(vsdata, edlen, 16, 1); printf("\n"); - free(vsdata); p += log->dsize; }