aboutsummaryrefslogtreecommitdiff
path: root/testing/sg_tst_bidi.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2019-01-31 14:29:54 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2019-01-31 14:29:54 +0000
commit04adb7f5027fb9f8b4368e4eaa561e14591bb1a7 (patch)
tree7f3af533e28c692c020eabd152b49762f340f106 /testing/sg_tst_bidi.c
parenta918d1a30569c4d3f09cc87836ff19215db6d8b7 (diff)
downloadsg3_utils-04adb7f5027fb9f8b4368e4eaa561e14591bb1a7.tar.gz
linux: add nanosecond durations when SG3_UTILS_LINUX_NANO environment variable given
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@809 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'testing/sg_tst_bidi.c')
-rw-r--r--testing/sg_tst_bidi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/sg_tst_bidi.c b/testing/sg_tst_bidi.c
index fd5d00c0..624266cc 100644
--- a/testing/sg_tst_bidi.c
+++ b/testing/sg_tst_bidi.c
@@ -53,7 +53,7 @@
is implemented by the scsi_debug driver is used. */
-static const char * version_str = "Version: 1.03 20190122";
+static const char * version_str = "Version: 1.04 20190128";
#define INQ_REPLY_LEN 96
#define INQ_CMD_OP 0x12
@@ -130,11 +130,11 @@ ext_ioctl(int sg_fd, bool nanosecs)
seip = &sei;
memset(seip, 0, sizeof(*seip));
- seip->valid_wr_mask |= SG_SEIM_RESERVED_SIZE;
+ seip->sei_wr_mask |= SG_SEIM_RESERVED_SIZE;
seip->reserved_sz = reserve_buff_sz;
- seip->valid_rd_mask |= SG_SEIM_RESERVED_SIZE;
- seip->valid_wr_mask |= SG_SEIM_CTL_FLAGS;
- seip->valid_rd_mask |= SG_SEIM_CTL_FLAGS; /* this or previous optional */
+ seip->sei_rd_mask |= SG_SEIM_RESERVED_SIZE;
+ seip->sei_wr_mask |= SG_SEIM_CTL_FLAGS;
+ seip->sei_rd_mask |= SG_SEIM_CTL_FLAGS; /* this or previous optional */
seip->ctl_flags_wr_mask |= SG_CTL_FLAGM_TIME_IN_NS;
seip->ctl_flags_rd_mask |= SG_CTL_FLAGM_TIME_IN_NS;
if (nanosecs)