diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2018-01-19 13:08:58 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2018-01-19 13:08:58 +0000 |
commit | 400444efd4e3c2cd758aee250556c84e052634dc (patch) | |
tree | 4db54605f35f18dc4d997263e0218974ecfba463 /lib/sg_cmds_basic.c | |
parent | 239d147229acac3d3504360a38cd5ec8505d0d5e (diff) | |
download | sg3_utils-400444efd4e3c2cd758aee250556c84e052634dc.tar.gz |
add hex2stdout(), hex2stderr() and hex2str(); add testing/sg_tst_nvme; clean Makefile.freebsd in examples/ and testing/; NVMe error processing
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@745 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_cmds_basic.c')
-rw-r--r-- | lib/sg_cmds_basic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sg_cmds_basic.c b/lib/sg_cmds_basic.c index 2f0cbac0..cf5dfbc2 100644 --- a/lib/sg_cmds_basic.c +++ b/lib/sg_cmds_basic.c @@ -36,7 +36,7 @@ #endif -static const char * const version_str = "1.79 20180112"; +static const char * const version_str = "1.80 20180117"; #define SENSE_BUFF_LEN 64 /* Arbitrary, could be larger */ @@ -351,7 +351,7 @@ sg_ll_inquiry(int sg_fd, bool cmddt, bool evpd, int pg_op, void * resp, if (evpd) inq_cdb[1] |= 1; inq_cdb[2] = (unsigned char)pg_op; - /* 16 bit allocation length (was 8) is a recent SPC-3 addition */ + /* 16 bit allocation length (was 8, increased in spc3r09, September 2002) */ sg_put_unaligned_be16((uint16_t)mx_resp_len, inq_cdb + 3); if (verbose) { pr2ws(" %s cdb: ", inquiry_s); @@ -502,7 +502,7 @@ sg_ll_inquiry_v2(int sg_fd, bool evpd, int pg_op, void * resp, if (evpd) inq_cdb[1] |= 1; inq_cdb[2] = (unsigned char)pg_op; - /* 16 bit allocation length (was 8) is a recent SPC-3 addition */ + /* 16 bit allocation length (was 8, increased in spc3r09, September 2002) */ sg_put_unaligned_be16((uint16_t)mx_resp_len, inq_cdb + 3); if (verbose) { pr2ws(" inquiry cdb: "); |