diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2019-01-14 02:42:05 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2019-01-14 02:42:05 +0000 |
commit | 0b07dc9a41e495604add3b006c040b36e4ea50c7 (patch) | |
tree | 0cb11adaa2f3f93c3be95cf28de486d7dbe716d9 /src/sg_bg_ctl.c | |
parent | 2433a22138f1b508c2765aa8499456cd6138a200 (diff) | |
download | sg3_utils-0b07dc9a41e495604add3b006c040b36e4ea50c7.tar.gz |
sg_lib: tweak sg_pt interface to better handle bidi; sg_cmds_process_resp(): two arguments removed
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@805 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_bg_ctl.c')
-rw-r--r-- | src/sg_bg_ctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sg_bg_ctl.c b/src/sg_bg_ctl.c index dfdcbc46..0f2128af 100644 --- a/src/sg_bg_ctl.c +++ b/src/sg_bg_ctl.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2018 Douglas Gilbert. + * Copyright (c) 2016-2019 Douglas Gilbert. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. @@ -35,7 +35,7 @@ * device. Based on sbc4r10.pdf . */ -static const char * version_str = "1.09 20180625"; +static const char * version_str = "1.10 20190113"; #define BACKGROUND_CONTROL_SA 0x15 @@ -115,8 +115,8 @@ sg_ll_background_control(int sg_fd, unsigned int bo_ctl, unsigned int bo_time, set_scsi_pt_cdb(ptvp, bcCDB, sizeof(bcCDB)); set_scsi_pt_sense(ptvp, sense_b, sizeof(sense_b)); res = do_scsi_pt(ptvp, sg_fd, DEF_PT_TIMEOUT, verbose); - ret = sg_cmds_process_resp(ptvp, cmd_name, res, SG_NO_DATA_IN, sense_b, - noisy, verbose, &sense_cat); + ret = sg_cmds_process_resp(ptvp, cmd_name, res, noisy, verbose, + &sense_cat); if (-1 == ret) ret = sg_convert_errno(get_scsi_pt_os_err(ptvp)); else if (-2 == ret) { |