From: Randy Bates Date: Wed, 27 May 2020 22:50:18 +0000 (-0500) Subject: Add customer id 0x101 X-Git-Tag: v1.12~8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b455b66d3c4ba1fa69f3cdde361aa39cffc819d8;p=users%2Fhch%2Fnvme-cli.git Add customer id 0x101 Signed-off-by: Randy Bates --- diff --git a/plugins/wdc/wdc-nvme.c b/plugins/wdc/wdc-nvme.c index 740b6be..5196c3b 100644 --- a/plugins/wdc/wdc-nvme.c +++ b/plugins/wdc/wdc-nvme.c @@ -122,8 +122,8 @@ #define SN730_LOG_CHUNK_SIZE 0x1000 /* Customer ID's */ -#define WDC_CUSTOMER_ID_GENERIC 0x0001 -#define WDC_CUSTOMER_ID_0x1002 0x1002 +#define WDC_CUSTOMER_ID_GN 0x0001 +#define WDC_CUSTOMER_ID_GD 0x0101 #define WDC_CUSTOMER_ID_0x1004 0x1004 #define WDC_CUSTOMER_ID_0x1005 0x1005 @@ -3606,7 +3606,7 @@ static int wdc_get_ca_log_page(int fd, char *format) fprintf(stderr, "ERROR : WDC : Unable to read CA Log Page data\n"); ret = -1; } - } else if (*cust_id == WDC_CUSTOMER_ID_GENERIC) { + } else if ((*cust_id == WDC_CUSTOMER_ID_GN) || (*cust_id == WDC_CUSTOMER_ID_GD)) { if ((data = (__u8*) malloc(sizeof (__u8) * WDC_BD_CA_LOG_BUF_LEN)) == NULL) { fprintf(stderr, "ERROR : WDC : malloc : %s\n", strerror(errno));