diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2018-05-30 21:34:12 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2018-05-30 21:34:12 +0000 |
commit | 9188a48d4a76281c11cb75497cdff74b40662d4c (patch) | |
tree | 36609c030ddd52ea1c11a22308f4cefe19d002c4 /lib/sg_pt_win32.c | |
parent | 919290b79eb6649d6d05242180ddb3944ca9521b (diff) | |
download | sg3_utils-9188a48d4a76281c11cb75497cdff74b40662d4c.tar.gz |
define SG_NVME_VPD_NICR sg3_utils (vendor) specific VPD page; work with SG_LIB_LBA_OUT_OF_RANGE
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@775 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_pt_win32.c')
-rw-r--r-- | lib/sg_pt_win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sg_pt_win32.c b/lib/sg_pt_win32.c index 1fbb6d2f..c4c84f21 100644 --- a/lib/sg_pt_win32.c +++ b/lib/sg_pt_win32.c @@ -5,7 +5,7 @@ * license that can be found in the BSD_LICENSE file. */ -/* sg_pt_win32 version 1.25 20180427 */ +/* sg_pt_win32 version 1.26 20180526 */ #include <stdio.h> #include <stdlib.h> @@ -2249,7 +2249,7 @@ sntl_inq(struct sg_pt_win32_scsi * psp, struct sg_pt_handle * shp, inq_dout[4] = 0x0; inq_dout[5] = 0x80; inq_dout[6] = 0x83; - inq_dout[n - 1] = 0xde; /* last VPD number */ + inq_dout[n - 1] = SG_NVME_VPD_NICR; /* 0xde last VPD number */ break; case 0x80: /* inq_dout[0] = (PQ=0)<<5 | (PDT=0); prefer pdt=0xd --> SES */ @@ -2294,7 +2294,7 @@ sntl_inq(struct sg_pt_win32_scsi * psp, struct sg_pt_handle * shp, nvme_id_ns = NULL; } break; - case 0xde: + case SG_NVME_VPD_NICR: /* 0xde */ inq_dout[1] = pg_cd; sg_put_unaligned_be16((16 + 4096) - 4, inq_dout + 2); n = 16 + 4096; |